delete structure
jhelo (24)
Mar 15, 2009 at 11:20am UTC
how?? i've been thinking that my code should be inside a for loop??? am i correct?
Scipio (442)
Mar 15, 2009 at 11:43am UTC
Yes, in order to repeat the whole thing until the user wants to quit, you have to put everything inside a loop.
jhelo (24)
Mar 15, 2009 at 12:01pm UTC
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 Mar 15, 2009 at 12:01pm UTC
jhelo (24)
Mar 15, 2009 at 3:09pm UTC
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)
Mar 15, 2009 at 3:37pm UTC
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)
Mar 16, 2009 at 2:04pm UTC
ok.. thank you thank you!!!
mwah!.. :]
Topic archived. No new replies allowed.