I'm having a problem with a structure within a structure:
typedef struct BrickStruct
{
int type;
SDL_Rect Brick_Coordinates;
SDL_Surface *Brick_Surface = NULL;
}BrickStruct;
my compiler says that about the line with the SDL_Surface structure:
error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
But I don't really understand because I got in front of me my teacher's lesson about pointer of structure saying that:
Coordinate *point = NULL;
Coordinate being a structure with two int inside: int x,y;
Can somebody explain me that weird thing ?
Thanks
struct's member in thestruct's declaration.