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; } |
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 |