jewjitsuMASTERaaaaaaaaaaa Guest
Offline
|
Posted: Tue May 27, 2008 2:24 pm Post maybe stupid 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
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 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? |
|