Question: void AddVehicle ( Vehicle v ) { std::vector vehicles; int numberOfVehicles = vehicles.size ( ) ; if ( numberOfVehicles = = capacity ) { cout
void AddVehicleVehicle v
std::vector vehicles;
int numberOfVehicles vehicles.size;
if numberOfVehicles capacity
cout "Showroom is full! Cannot add vGetYearMakeModel endl;
cout "Vehicles in Full Showroom" endl;
else
vehicles.pushbackv;
Showroom.cpp: In function void AddVehicleVehicle:
Showroom.cpp::: error: capacity was not declared in this scope
if numberOfVehicles capacity
~~~~~~~
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
