Implement a simple telephone directory using class. in your telephone directory each class should have a name and a telephone number. You should search using the telephone number. If the number is found your program should display the name and telephone number of the person. if not found should give an error message...
please help on this question... my assignment is due on thursday...
I think you can use a "map" to implement your design.
the map's key is the telephone number and the value is the user's name, I think it is simple and you can try it!
oldsm, you can found a good example in wikipedia almos the same that you are looking for, go to www.wikipedia.org and search by the name "inventory" or directory, will be a great help.