Question: Write a program in c++ that reads patient data from a .txt file and stores it in an array/vector of structures, and also allows the
Write a program in c++ that reads patient data from a .txt file and stores it in an array/vector of structures, and also allows the user to add and delete a patient from the list if they want.
The structure, Patient has the following members: name (string), phoneNumber (long), petType which is an enum of the type dog, cat, or bird.
The .txt file has the format:
Name1,5550005555,0
Name2,5551005555,2
(where 0 and 2 at the end represent the pet type (you can make 0,1,2 correspond to whatever pet type you wish)).
Do NOT use linked lists, and please keep it from being too complex.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
