I have solved some of this problem but not all of it and have spent so much time already my laptop will be reduced to trash.
C++ program that prompts the user to enter a person's name and a telephone number.
Store both of these items into a file named "phonebook.txt". The program should loop until the user enters "quit" for the name. The name should be stored as First Last. The phone number should be stored as (734) 555-1212. Display the contents of the file when the user enters quit.
This is what I have so far. And I only have this because I had help from Vlad from Moscow. I am a beginning student and haven't even been exposed to some of this programming but this code gets me close to what I want. I need only now to display the number into the text file in the proper format.
Example: (734) 555-7565
I would also like to upon quiting the program display the file.