How to make a phone book In c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to make a phone book In c++?

1st May 2017, 6:25 PM
Amir jalaliyeh
Amir jalaliyeh - avatar
9 Answers
+ 5
as you can see there's lots of ways just think it through Some questions to guide you; What does the Phonebook have to save? (Only name and number or other data?) What do you want do with it? (Search it in, store new numbers, ...) Do you want to keep it as simple as possible? and so on ...
1st May 2017, 7:55 PM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
+ 10
Chris... the phone book is the list of the phone numbers..
1st May 2017, 7:44 PM
Umbe
Umbe - avatar
+ 10
use two for loops like this : for(){ for(){ } }
1st May 2017, 7:45 PM
Umbe
Umbe - avatar
+ 6
what do you mean by phone book???
1st May 2017, 6:29 PM
chris
chris - avatar
+ 6
if you want us to do your homework explain yourself don't just say "phone book"
1st May 2017, 6:42 PM
chris
chris - avatar
+ 3
you could use a map or one of those given containers to store phone numbers and names
1st May 2017, 7:40 PM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
+ 2
make a class Phonebook and implement what you need
1st May 2017, 7:46 PM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
+ 1
first come up with the way u wanna design it which will help u choose the data structure to choose. You may go with key - value like name - no
1st May 2017, 7:48 PM
Ujjwal Anand
Ujjwal Anand - avatar
0
like phone number in your phone ...that have: add number with name, update phone number ,etc.
1st May 2017, 6:38 PM
Amir jalaliyeh
Amir jalaliyeh - avatar