How would i go about storing an arbitrary number of objects within a vector.
If say I have 20 created objects, how could I loop through them and 'push_back' to the vector without manually doing each one?
Also, whilst I am coding I can create objects easily, is there a way that the person using the program can create objects, such as adding a book to a library?
I don't yet know about pointers, so please no advice yet on that (it will probably just confuse me more)
NB....this isn't homework. Currently working on chapter 9 of Stroustrup PPP.