Explorar o código

Update Beginners_-_Struct_in_Struct.c

Rudy Boudewijn van Etten %!s(int64=5) %!d(string=hai) anos
pai
achega
7fa2141208
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Beginners_-_Struct_in_Struct.c

+ 2 - 2
Beginners_-_Struct_in_Struct.c

@@ -5,14 +5,14 @@ struct inventory{
     bool pepper;
     bool pepper;
     bool salt;
     bool salt;
     bool potion;
     bool potion;
-}inventory;
+};
 
 
 struct aiMushroom{
 struct aiMushroom{
     int x;
     int x;
     int y;
     int y;
     int energy;
     int energy;
     struct inventory leftPocket;
     struct inventory leftPocket;
-}aiMushroom;
+};
 
 
 static struct aiMushroom myaiMushroom = {10,20,99,{true,false,true}};
 static struct aiMushroom myaiMushroom = {10,20,99,{true,false,true}};