Question: Make sure the program is in c++ and you make the two function. One for reading the vector data and another one to print out

 Make sure the program is in c++ and you make the

Make sure the program is in c++ and you make the two function. One for reading the vector data and another one to print out the info.

Write a program that keeps track of a telephone directory. The program should create a structure, Person, with the following data: struct Person string firstName; string lastName; string phoneNumber; The program should then create a vector of Person structs, called directory. Your program should have functions to: - Read the vector data from a data file "telephoneData.txt" into the vector directory. - Print the details of all Persons in the vector. You may use the following "telephone Data.txt" file: Tom Garcia 855-433-2076 Nancy James 202-872-1010 Bill Meyer 120-343-5623 Jack Didier 352-654-1983 - - --- - - - - - Your program should print something like this: Name Telephone ------------- Tom Garcia 855-433-2076 Nancy James 202-872-1010 Bill Meyer 120-343-5623 Jack Didier 352-654-1983

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!