How to print from this vector?
1 2 3 4 5
|
//Cars
vector <Car> ParkingLot;
ParkingLot.push_back(Car(234, 4, 2, EColor::NOCOLOR, "Sibble"));
ParkingLot.push_back(Car(457.1, 4, 4, EColor::PURPLE, "Sal"));
ParkingLot.push_back(Car(3423.8, 4, 3, EColor::BLUE, "Susan"));
|
I thought this:
cout << Car.ParkingLot(0);
but it doesn't work. Any body know?
Last edited on