Question: in c++ Write the function readZombies that will take a filename as parameter and read the names, health and damage of zombies from a text

in c++
in c++ Write the function readZombies that will take a filename as

Write the function readZombies that will take a filename as parameter and read the names, health and damage of zombies from a text file and return a vector of Zombie pointers. The file format is provided below. The first line of the file consists of an integer that states how many zombie objects are in the text file. vector> readZombies(string filename) Sample text file: 3 Z Bob 100 5 Z Ed 50 10 Z Michael 10000 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!