Argh, I hate cpp...
I'm sure I'm doing something very stupid here, and that's probably
why the compiler is shouting at me. So where's me mistake?
Must I spell the constructor out for the compiler?
You probably want the error:
error C2661: 'Paddle::Paddle' : no overloaded function takes 3 parameters
And the code:
Sprite.h...The constructor is implemented...
class Sprite
{
public:
...
//Initialize the sprite in a specified location (x,y).
Sprite(char *sFileName, int nStartX, int nStartY);
...
};
Paddle.h, as you see no redefinition of a constructor...
class Paddle:public Sprite
{
public:
SDL_Rect Move(int nDeelta);
protected:
private:
};
Main.cpp
...
Paddle paddleMain = Paddle(PADDLE_IMAGE, 100, 500);
...