Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions