Course Solutions Uncategorized (Solved) : Keep Getting Following Errors Compiled Pokemoncpp 44 35 Error Expected End Declaration Pok Q29008066 . . . .

(Solved) : Keep Getting Following Errors Compiled Pokemoncpp 44 35 Error Expected End Declaration Pok Q29008066 . . . .

 

I keep getting the following errors when compiled:

pokemon.cpp:44:35: error:expected ‘;’ at end of declaration

Pokedex* newMode = new Pokedex{NULL,NULL};

^

;

pokemon.cpp:67:37: warning:expression result unused [-Wunused-value]

Pokedex* newOne = new Pokedex; {p,list};

^

pokemon.cpp:67:43: error:expected ‘;’ after expression

Pokedex* newOne = new Pokedex; {p,list};

^

;

pokemon.cpp:67:39: warning:expression result unused [-Wunused-value]

Pokedex* newOne = new Pokedex; {p,list};

^~~~

pokemon.cpp:91:12: warning:generalized initializer lists are a C++11extension

[-Wc++11-extensions]

return {name,0,-damage,0,0,0,0};

   ^~~~~~~~~~~~~~~~~~~~~~~~

pokemon.cpp:96:11: warning:generalized initializer lists are a C++11extension

[-Wc++11-extensions]

I’m having trouble fixing my errors. I’m using GCC on a Mac.Below is my code. Also, I would like the output on screen to showthe moveset of each pokemon after its name like this example (thishas different names and movesets):

Charmander (Fire)
– Growl

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post