What a shame, sorry about that, I'm new with c, but now I'm getting a new error:
Code:
RawImage.h|6|error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘{’ token|
the new code:
Code:
struct RawImage
{ //error
int get_width() { return width; }
int get_height() { return height; }
byte *get_raw() { return raw; }
void set_width(int w) { width = w; }
void set_heigth(int h) { heigth = h; }
void set_raw(byte *r) { raw = r; }
RawImage(int w, int h, byte *r) : width(w), heigth(h), raw(r) { }
RawImage() { }
private:
int width;
int heigth;
byte *raw;
};
Thanks.