printing to screen from a vector
I want to make a vector that can input data to via classes and save it in a file.
I have done some testing but I don't see how I do cout the entries?
I am assuming I have a vector here?
Code:
ParentClass people[ ] = {
SubClass("Name", "Adress", Phone)
};
I have made all the appropriate classes and and when running, I get this output:
Code:
ParentClass constructor...
SubClass constructor...
SubClass destructor...
ParentClass destructor...
0x22fef0ParentClass destructor...
the last one is a little weird... did I forget to delete something?
I tried this, but it doesn't print extra anything on screen:
Code:
std::cout << people;