Guys i tried many things but i can't resolve this error,
here is the code:
RawImage.h
error :Code:struct RawImage { public: // <- error int get_width() const { return width; } int get_height() const { return height; } byte[] get_raw() const { 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; };
Code:/RawImage.h|6|error: expected specifier-qualifier-list before ‘public’|
I'm having the same error in another struct, but i think that isn't necessary put the other struct here since the errors are the same, and resolving this i will be able to resolve the other.
Many Thanks.
ps : English isn't my native language, so sorry for any mistake.



2Likes
LinkBack URL
About LinkBacks



