Question
Write a program to implement a telephone directory using formatted I/O file. You should write a class TeleDirectory for storing the name, number and address
Write a program to implement a telephone directory using formatted I/O file. You should write a class TeleDirectory for storing the name, number and address of telephone holder. Your program should be capable of writing name, telephone number and address into a data file teledir.txt. Then write class functions searchByName: which should read the file and must return the Phone number of searched person and searchByNumber : which should read the file and must return the name of person holding the searched phone number. Also write a class function printDirectory which must read the complete directory and print all the records of the directory.
File Edit View Project Debug Test Analyze Tools Extensions Window Help Search (Ctrl+O Solution Attach... - SE * Live Share TeleDirectory.h = x 1 #ifndef TELEDIRECTORY_H_ 2. #define TELEDIRECTORY_H_ 3 #includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started