Library does have a vector for Books and Cards, just didn't show it here, it also has a member function to add Books/Cards.
a little info on the project:
I am reading from .txt files Book and Card, reading them into vectors (also trying with objects), when user adds new book/card it writes back to .txt files and updates them.
Library has another member function showbooks(),
1 2 3 4 5 6 7 8 9
|
void Library::showBooks()
{
for(int i=0; i!= booklist.size(); i++)
{
booklist[i].printbooks();
}
//OR
// inbooks[numBooks].printbooks();
}
|
But nothing shows!! and i've been trying for a long time different things and it is due soon.
I figured I don't have the
defined, and I don't know how to.
Any help will be really appreciated!