I declared a structure with the new “game_struct”. It has these contents :
struct game_struct{
scene scene_container[10];
player cPlayer;;
scene scene_one;
this->scene_container[0] = scene_one;
this->scene_container[0].image = " ";
this->scene_container[0].scene_message = "Welcome to the home screen of the game.";
};
It gives the error “Expected unqualified-id before ‘this'”. I have been trying to fix it, but I cannot figure it out. Any advice would be much appreciated.
You can’t use
thisoutside of a function ofgame_structProbably what you wanted to do is :