View Single Post
Old 02-05-2007, 06:36 PM   #1 (permalink)
moramoga
Recruit
 
Join Date: Feb 2007
Posts: 2
moramoga is on a distinguished road
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];
moramoga is offline   Reply With Quote