|
help with arraylist
I need to make an arrayList in my main, the user gives the size, and I am inserting airplane objects, but the compiler keeps throwing me an exception: no appropriate default constructor available
Here is my code:
Airplane* myAirplanes= NULL;
cout << "Size of the arraylist: " << endl;
cin >> cant;
cant = cant-1;
exception-----> aviones = new Avion[cant];
|