Sorting Names by Phone Numbers on a File in C++
Not what you're looking for?
I need this program written in the c++ language.
Process phone records. This program reads phone records from the data file "phone.txt".
It then displays the records ordered by names and ordered by phone.
Assuming: maximum 50 records in the data file. Each input line contains two fields: Name Phone_Number
Purchase this Solution
Solution Summary
The solution provides a C++ program. Very simple to follow. The program reads up to 50 phone records (you can redefine the MAX constant to other value than 50). Sample data file is attached (phone.txt). It then performs sorting of records by name and by phone number.
Solution Preview
Attached is the file with C++ program. Very simple to follow, I have included comments. The file phone.txt must be in the same directory as the executable. The program reads up to 50 phone records (you can redefine the MAX constant to other value than 50). Sample data file attached (phone.txt) contains following data:
harry 1236547895
billy 4122364569
sally 5123216548
The sample output of the program will look like below:
Records sorted by name
billy 4122364569
harry 1236547895
sally 5123216548
Records sorted by phone numbers
harry 1236547895
billy ...
Purchase this Solution
Free BrainMass Quizzes
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
Javscript Basics
Quiz on basics of javascript programming language.
C# variables and classes
This quiz contains questions about C# classes and variables.