Does anyone know how to go about displaying a class into an array? For example, I mad a class, and want to print it out as an array of maybe 10. I've looked online, and the examples are not very clear.
For example, this is the class that I have, and I want to display it using arrays 10 times (I know the class needs work, i'm not fully done with it yet). Thanks
Why are you asking the question again?
If you did not understand what I posted, then please indicate what you did not understand.
The only thing I did not show you in that post was how to print the array of DVDs.
1 2 3 4 5 6
DVD library[10]; // Using kemort's name for the array
// Load the data to the array somehow
// Print each element of the array
for (int i=0; i<10; i++)
library[i].Print(cout);