hi...i have a class that i made called Apartment. i need to create a vector and call the class objects. i'm trying to see how to do it but my book and a lot of websites barely have any info. i have objects inside the Apartment class: dispInfo and getName.
so far i'm declaring the vector like this:
which does not work. however when i useCode:vector<int> vector_one; vector<Apartment> apt; int user_input; for(i=0; i<user_input; i++) apt.push_back(i);
which runs fine.Code:vector_one.push_back(i);
how can i get apt to work like how vector_one works. also, how can i call the objects inside apt?
thanks