error: expected class-name before '{' token
Hi I have that error, i cant figer out what is it
Quote:
#include "figuras.h"
class barra : public figuras {
protected:
int velocidad;
public:
barra();
~barra();
int barraaltu(wxWindow *a) { return a->GetClientSize().GetWidth() / 10; }
void dibujar(wxPaintDC& dc, int x, int y,wxWindow *a);
int barralargo(wxWindow *a) { return a->GetClientSize().GetHeight() / 22;}
};
Re: error: expected class-name before '{' token
you have a typo in figuras.h and the class name doesn't match what you are trying to inherit from.