My programme cannot run i have been trying 3days already : <p>I need to store all car information using array in class and print it out.
Can anyone help me edit it T.T.
I am using switch after they have register their car that how many car they want to register. It need to get back to menu and led them to the second choice to update their information.
3rd is to print out which one they wanted to print out and they can key in without printing out all 
4th, but for this 4th is to print out all.</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;vector&gt;


 using namespace std;

 class Vehicle
 {
protected:
    string Manufacturer;
    string Type;
    int Seatnumber;
public:
    Vehicle()
    {   
        Manufacturer="";
        Type="";
        Seatnumber=1;
    };
    Vehicle(string manufacturer,string type,int seatnumber)
    {   Manufacturer=manufacturer;
        Type=type;
        Seatnumber=seatnumber;
    };
    void setmanufacturer(string manufacturer)
    {   Manufacturer=manufacturer;
    };
    void settype(string type)
    {   Type=type;
    };
    void setseatnumber(int seatnumber)
    {   Seatnumber=seatnumber;
    };
    string getmanufacturer()
    {   return Manufacturer;
    }
    string gettype()
    {   return Type;    
    };
    int getseatnumber()
    {   return  Seatnumber;
    };
   };
   class Car: public Vehicle
   {
   protected:
    string Carplatenumber;
    string Model;
   public:
    Car():Vehicle()
    {
        Carplatenumber="";
        Model="";
    };
    Car(string carplatenumber, string model)
    {   Carplatenumber=carplatenumber;
        Model=model;
    };
    void setcarplatenumber(string carplatenumber)
    {   Carplatenumber=carplatenumber;
    };
    void setmodel(string model)
    {    Model=model;
    };
    string getcarplatenumber()
    {   return Carplatenumber;  
    };
    string getmodel()
    {   return Model;   
    };
    void display();
    };
    inline void Car::display(){

    cout&lt;&lt;Manufacturer;
    cout&lt;&lt;Type;
    cout&lt;&lt;Seatnumber;
    cout&lt;&lt;Carplatenumber;
    cout&lt;&lt;Model;

    };
   int main ()
    { 
   char choice;
   int size=0,seats;
Car car[size];
string manufacturer,type,carplatenumber,model;
cout&lt;&lt;"Please choice a selection: ";
cin&gt;&gt;choice;
bool True=true;
while(True){

switch(choice){
    case 'A':
        True=false;
        cout&lt;&lt;"How many cars information do you want to store in it : ";
        cin&gt;&gt;size;
        cout&lt;&lt;"\n";
        for(int i=0;i&lt;size;i++){
            cout &lt;&lt; "Enter car "&lt;&lt;i+1&lt;&lt;" Manufacturer : ";
            getline (cin,manufacturer);
            cin.ignore();
            car[size].setmanufacturer(manufacturer);
            cout &lt;&lt; "Enter car "&lt;&lt;i+1&lt;&lt;" Type : ";
            getline (cin,type);
            cin.ignore();
            car[size].settype(type);
            cout &lt;&lt; "Enter car "&lt;&lt;i+1&lt;&lt;" Seatsnumber of the car : ";
            cin &gt;&gt; seats;
            cin.ignore();
            car[size].setseatnumber(seats);
            cout &lt;&lt; "Enter car "&lt;&lt;i+1&lt;&lt;" Model : ";
            getline (cin,model);
            cin.ignore();
            car[size].setmodel(model);
            True=true;
        }
        break;
    case'B':
        True=false;
        cout &lt;&lt; "Hi,there please update your carplatenumber after u have gone through your new car!";
        getline(cin,carplatenumber);
        car[size].setcarplatenumber(carplatenumber);
        True=true;
        break;
    case'c':
        True=false;
            for(int i=0;i&lt;size;i++){
                car[i].display();
                }
        True=true;
        break;

    default:cout&lt;&lt;"Invalid input";
}
 }
    return 0;
 }
</code></pre>
