delete structure

Pages: 12
jhelo (24)
how?? i've been thinking that my code should be inside a for loop??? am i correct?
Scipio (442)
Yes, in order to repeat the whole thing until the user wants to quit, you have to put everything inside a loop.
jhelo (24)
how??? as in the whole code?? there should be a variable right?? like for example. do you want to go back to the main page? y/n ,, then how will i make a loop??? it's really complicating.. >.<
Last edited on
Scipio (442)
http://www.cplusplus.com/forum/beginner/8785/
jhelo (24)
i already make my code to loop, now, the only problem is how to display the stored data in the add choice.. pls help...>.<
Scipio (442)
Let's keep it to one topic, shall we? :)

Displaying the data seems the most easiest of all...

1
2
3
4
5
//go through all elements
for (int i=0;i<size;i++)
{
    cout<<book[i].author<<'\t'<<book[i].title<<endl; //print data
}
jhelo (24)
ok.. thank you thank you!!!
mwah!.. :]
Topic archived. No new replies allowed.
Pages: 12