PDA

View Full Version : error: expected class-name before '{' token



Aresti
12th November 2008, 19:03
Hi I have that error, i cant figer out what is it


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

RolandHughes
12th November 2008, 21:00
you have a typo in figuras.h and the class name doesn't match what you are trying to inherit from.