View Single Post
Old 02-05-2007, 11:46 PM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,713
redhead is on a distinguished road
What is Avion? A struct? A class? Your mothers birthdaypressent ?
The compiler claims to be in need of a constructor for the class, and since you didn't show what it is, I'm assuming you need just that ie:
Code:
class Avion{
  private:
    // something hush hush
  public:
    Avion(void) {};   // this is a default constructor for class Avion
                      // Usualy called when using new()
    ~Avion(void) {};  // this is a default destructor for class Avion
                      // Usualy called when using delete()
    ...
};
I belive the default constructor/destructor is described in just about any C++ book describing how to use classes.
But since you didn't provide more than a few lines of code, I could be telling you something which you allready know and are using, and as a result this is just pissing you of.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote