Server Help

Trash Talk - help with c++

Anonymous - Tue May 27, 2008 2:24 pm
Post subject: help with c++
I am working a program using SDL library, and language is c++, this is the part of code i have a problem with

Code: Show/Hide
class Dot
{
      private:
              int x,y;
              int xVel,yVel;
      public:
             Dot();
             void handleInput();
             void move();
             void show();
}

Dot::Dot()
{
          x = 0;
          y = 0;
          xVel = 0;
          yVel = 0;
}


and This is what DevC++ tells me
Code: Show/Hide
main.cpp:49: error: new types may not be defined in a return type
main.cpp:49: error: return type specification for constructor invalid



any one help?
Anonymous - Tue May 27, 2008 2:40 pm
Post subject:
nevermind forgot to add a ';' att the end of class
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group