By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,406 Members | 982 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,406 IT Pros & Developers. It's quick & easy.

Designing a mobile phone directory.

P: 3
Hi everyone, i am new to all this kind of stuff and am looking for some advice and any help that you could offer. I have been learning C programing for about 6 months now and i need to write a program that could be used as a mobile phone diectory. i need to use dynamic data structures so that info such as phone number, surname, and other fields can be stored. Could anyone help with some advice and tips for how i get started on this, if i am honest i am almost completely lost with it.

Thanks for your help
Buzzer25.
Mar 7 '07 #1
Share this Question
Share on Google+
5 Replies


Ganon11
Expert 2.5K+
P: 3,652
My advice would be to create a class or struct that will hold a phone number, name, address, etc. in its data members, then use a vector or linked list to store several objects of this struct/class.
Mar 7 '07 #2

P: 3
Thanks for the quick reply, that was sort of what i was thinking about doing using structs i mean, but i wasnt sure how i could link them. The only problem is how do u use the vector or linked lists, i havent really used them before, any suggestions about implimenting them?
Mar 7 '07 #3

Expert 100+
P: 1,510
Thanks for the quick reply, that was sort of what i was thinking about doing using structs i mean, but i wasnt sure how i could link them. The only problem is how do u use the vector or linked lists, i havent really used them before, any suggestions about implimenting them?
have a look at these tutorials
http://www.davethehat.com/articles/tiny_stl.htm
http://pages.cpsc.ucalgary.ca/~kremer/STL/1024x768/index.html
Mar 7 '07 #4

P: 3
thanks a lot horace
Mar 8 '07 #5

10K+
P: 13,264
Changed thread title.
Mar 9 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.