void Pokedex::wakeupProfessorJimi(std::string) − populates the dynamic array of Entries with data from a valid file path, the function should open the file and use the add (Pokemon*, int) function to insert a Pok ́emon into the correct position in the dynamic array of Entries. Once the position is determined, the Pok ́emon should be inserted into the corresponding position in the list of Pok ́emon belonging to the Entries object. i aready have a pokemon class with enum for types, move class and move class setup and working it's just this one part. here is the text file 1,Bulbasaur,45,49,[Grass,Poison],Fire,Water,[[tackle,40,40,100],[vine whip,45,45,100],[growl,10,10,100]] 2,Ivysaur,60,63,[Grass,Poison],Fire,Water,[[leech seed,45,45,90],[razor leaf,55,55,95],[growl,10,10,100]] 3,Venusaur,80,83,[Grass,Poison],Fire,Water,[[tackle,40,40,100],[leech seed,45,45,90],[razor leaf,55,55,95],[growl,10,10,100]] 4,Charmander,39,43,[Fire],Water,Fire,[[growl,10,10,100],[fire fang,65,65,95]] 5,Charmeleon,58,58,[Fire],Water,Fire,[[growl,10,10,100],[fire fang,65,65,95],[slash,70,70,100]] 6,Charizard,78,78,[Fire,Flying],Water,Fire,[[growl,10,10,100],[fire fang,65,65,95],[slash,70,70,100],[dragon breath,60,60,100]] 7,Squirtle,44,65,[Water],Fire,Water,[[tackle,40,40,100],[water gun,40,40,100]] 8,Wartortle,59,80,[Water],Fire,Water,[[tackle,40,40,100],[water gun,40,40,100],[bite,60,60,100]] 9,Blastoise,79,100,[Water],Fire,Water,[[tackle,40,40,100],[water gun,40,40,100],[bite,60,60,100],[hydro pump,110,110,80]] 10,Caterpie,45,35,[Bug],Rock,Bug,[[string shot,10,10,95],[tackle,40,40,100],[bug bite,60,60,100]] 11,Metapod,50,55,[Bug],Rock,Bug,[[harden,10,10,10]] 12,Butterfree,60,50,[Bug,Flying],Rock,Bug,[[string shot,10,10,95],[tackle,40,40,100],[bug bite,60,60,100]] 13,Weedle,40,30,[Bug,Poison],Psychic,Bug,[[poison sting,15,15,100],[string shot,10,10,95],[bug bite,60,60,100]] 14,Kakuna,45,25,[Bug,Poison],Psychic,Bug,[[harden,10,10,10]] 15,Beedrill,65,40,[Bug,Poison],Psychic,Bug,[[poison sting,15,15,100],[string shot,10,10,95],[bug bite,60,60,100]] 16,Pidgey,40,40,[Normal,Flying],Rock,Flying,[[tackle,40,40,100],[hurricane,110,110,70],[quick attack,40,40,100]] 17,Pidgeotto,63,55,[Normal,Flying],Rock,Flying,[[tackle,40,40,100],[hurricane,110,110,70],[quick attack,40,40,100],[gust,40,40,100]] 18,Pidgeot,83,75,[Normal,Flying],Rock,Flying,[[tackle,40,40,100],[hurricane,110,110,70],[quick attack,40,40,100],[gust,40,40,100],[air slash,75,75,95]] 19,Rattata,30,35,[Normal],Fighting,Normal,[[tackle,40,40,100],[tail whip,10,10,100],[bite,60,60,100]

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.5: Case Studies
Problem 3E
icon
Related questions
Question

void Pokedex::wakeupProfessorJimi(std::string) − populates the dynamic array of Entries with data from a valid file path, the function should open the file and use the add (Pokemon*, int) function to insert a Pok ́emon into the correct position in the dynamic array of Entries. Once the position is determined, the Pok ́emon should be inserted into the corresponding position in the list of Pok ́emon belonging to the Entries object. i aready have a pokemon class with enum for types, move class and move class setup and working it's just this one part. here is the text file 1,Bulbasaur,45,49,[Grass,Poison],Fire,Water,[[tackle,40,40,100],[vine whip,45,45,100],[growl,10,10,100]] 2,Ivysaur,60,63,[Grass,Poison],Fire,Water,[[leech seed,45,45,90],[razor leaf,55,55,95],[growl,10,10,100]] 3,Venusaur,80,83,[Grass,Poison],Fire,Water,[[tackle,40,40,100],[leech seed,45,45,90],[razor leaf,55,55,95],[growl,10,10,100]] 4,Charmander,39,43,[Fire],Water,Fire,[[growl,10,10,100],[fire fang,65,65,95]] 5,Charmeleon,58,58,[Fire],Water,Fire,[[growl,10,10,100],[fire fang,65,65,95],[slash,70,70,100]] 6,Charizard,78,78,[Fire,Flying],Water,Fire,[[growl,10,10,100],[fire fang,65,65,95],[slash,70,70,100],[dragon breath,60,60,100]] 7,Squirtle,44,65,[Water],Fire,Water,[[tackle,40,40,100],[water gun,40,40,100]] 8,Wartortle,59,80,[Water],Fire,Water,[[tackle,40,40,100],[water gun,40,40,100],[bite,60,60,100]] 9,Blastoise,79,100,[Water],Fire,Water,[[tackle,40,40,100],[water gun,40,40,100],[bite,60,60,100],[hydro pump,110,110,80]] 10,Caterpie,45,35,[Bug],Rock,Bug,[[string shot,10,10,95],[tackle,40,40,100],[bug bite,60,60,100]] 11,Metapod,50,55,[Bug],Rock,Bug,[[harden,10,10,10]] 12,Butterfree,60,50,[Bug,Flying],Rock,Bug,[[string shot,10,10,95],[tackle,40,40,100],[bug bite,60,60,100]] 13,Weedle,40,30,[Bug,Poison],Psychic,Bug,[[poison sting,15,15,100],[string shot,10,10,95],[bug bite,60,60,100]] 14,Kakuna,45,25,[Bug,Poison],Psychic,Bug,[[harden,10,10,10]] 15,Beedrill,65,40,[Bug,Poison],Psychic,Bug,[[poison sting,15,15,100],[string shot,10,10,95],[bug bite,60,60,100]] 16,Pidgey,40,40,[Normal,Flying],Rock,Flying,[[tackle,40,40,100],[hurricane,110,110,70],[quick attack,40,40,100]] 17,Pidgeotto,63,55,[Normal,Flying],Rock,Flying,[[tackle,40,40,100],[hurricane,110,110,70],[quick attack,40,40,100],[gust,40,40,100]] 18,Pidgeot,83,75,[Normal,Flying],Rock,Flying,[[tackle,40,40,100],[hurricane,110,110,70],[quick attack,40,40,100],[gust,40,40,100],[air slash,75,75,95]] 19,Rattata,30,35,[Normal],Fighting,Normal,[[tackle,40,40,100],[tail whip,10,10,100],[bite,60,60,100]] 20,Raticate,55,60,[Normal],Fighting,Normal,[[tackle,40,40,100],[tail whip,10,10,100],[bite,60,60,100],[sucker punch,70,70,100]] 21,Spearow,40,30,[Normal,Flying],Electric,Fighting,[[growl,10,10,100],[fury attack,15,15,85],[wing attack,60,60,100]] 22,Fearow,65,65,[Normal,Flying],Electric,Fighting,[[growl,10,10,100],[fury attack,15,15,85],[wing attack,60,60,100],[drill peck,80,80,100]] 23,Ekans,35,60,[Poison],Psychic,Poison,[[wrap,15,15,90],[poison sting,15,15,100],[acid,40,40,100]] 24,Arbok,60,69,[Poison],Psychic,Poison,[[wrap,15,15,90],[poison sting,15,15,100],[acid,40,40,100],[sludge bomb,90,90,100]] 25,Pikachu,35,40,[Electric],Ground,Electric,[[tail whip,10,10,75],[thunder shock,40,40,100],[iron tail,100,100,75]] 26,Raichu,60,55,[Electric],Ground,Electric,[[tail whip,10,10,75],[thunder shock,40,40,100],[iron tail,100,100,75],[thunderbolt,90,90,100]] 27,Sandshrew,50,85,[Ground],Grass,Ground,[[scratch,15,15,100],[rollout,30,30,90],[earthquake,100,100,100]] 28,Sandslash,75,110,[Ground],Grass,Ground,[[scratch,15,15,100],[rollout,30,30,90],[earthquake,100,100,100],[fury cutter,40,40,95]] 29,NidoranF,55,52,[Poison],Psychic,Poison,[[tail whip,10,10,100],[bite,60,60,100],[crunch,80,80,100]] 30,Nidorina,70,67,[Poison],Psychic,Poison,[[tail whip,10,10,100],[bite,60,60,100],[crunch,80,80,100],[poison sting,15,15,100]] 31,Nidoqueen,90,87,[Poison,Psychic,Poison,Ground],Psychic,Poison,[[tail whip,10,10,100],[bite,60,60,100],[crunch,80,80,100],[poison sting,15,15,100],[double kick,30,30,100]] 32,NidoranM,46,40,[Poison],Psychic,Poison,[[tail whip,10,10,100],[bite,60,60,100],[crunch,80,80,100]] 33,Nidorino,61,57,[Poison],Psychic,Poison,[[tail whip,10,10,100],[bite,60,60,100],[crunch,80,80,100],[poison sting,15,15,100]] 34,Nidoking,81,77,[Poison,Ground],Psychic,Poison,[[tail whip,10,10,100],[bite,60,60,100],[crunch,80,80,100],[poison sting,15,15,100],[double kick,30,30,100]] 35,Clefairy,70,48,[Fairy],Poison,Fairy,[[sing,10,10,55],[sweet kiss,10,10,75],[pound,40,40,100]] 36,Clefable,95,73,[Fairy],Poison,Fairy,[[sing,10,10,55],[sweet kiss,10,10,75],[pound,40,40,100],[disarming voice,40,40,100]] 37,Vulpix,38,40,[Fire],Water,Fire,[[tail whip,10,10,100],[quick attack,10,10,100],[flamethrower,90,90,100]] 38,Ninetales,73,75,[Fire],Water,Fire,[[tail whip,10,10,100],[quick attack,10,10,100],

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Quicksort
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning