Teen Programmers Unite  
 

 

Return to forum top

C++ Phonebook

Posted by mattlynam2002 [send private reply] at October 26, 2002, 01:43:06 PM

Hi all,
Does anyone know some source code for a basic phonebook in c++ ? I mean just a simple Win32 console app, but one that stores details and enables you to retrieve them,whenever requested.Thanx !

Posted by gian [send private reply] at October 26, 2002, 04:46:08 PM

Some source code?
I imagine it would feature #include, if, for, while perhaps and int, float and char.
Is that enough or did you want more?

Posted by Qubit [send private reply] at October 26, 2002, 06:14:17 PM

hmm. I think this is a pretty entry level project... I seem to remember that quite a few introduction to C/C++ books have something similar to learn with. Usually some kind of simplistic address book implementation. There are many many ways to do it, which seems why it is a popular favorite. It could be as simple as you want (say, struct), or as complex as you want (i.e., add in linked lists).

Generally beginner books use struct. and a simple menu implementation. Later on when you learn to use file routines, store it on disk instead of memory for future retreival...

if you have a good C++ book, it's all there to help you on your way I'm sure.

Posted by buzgub [send private reply] at October 26, 2002, 07:54:53 PM

I suspect this is a school project. Did you not notice the warning about not asking us to do your homework, mattlynam2002?

Posted by vikram_1982 [send private reply] at October 27, 2002, 08:39:33 AM

Dude,

If u KNOW C++, this would take only half-n-hour to code. Why dont u do it urself??

Posted by mattlynam2002 [send private reply] at October 27, 2002, 10:25:40 AM

Well buzcub u tit i dont even do i.t related topics at school so its not my homework (4 proof ask vlad) And vikram_1982, well i obviously i DONT know c++ or i wouldnt be asking !!!! remind me not to ask again !

Posted by vikram_1982 [send private reply] at October 27, 2002, 10:44:12 AM

If u dont know a language ,why do u need a *SOURCE CODE*??

Posted by eXorcus [send private reply] at October 27, 2002, 12:32:41 PM

I would guess that an online tutorial of this program has been done somewhere...but I'll have to agree with Qubit in that a book would probably be the best bet.

Posted by vladimir_l [send private reply] at October 30, 2002, 06:32:17 AM

Vlad confirms its not a school project. Matt , a phonebook is pretty easy to code if you sit down with a piece of plain A2 paper and a pencil and start scribbling ideas , just have some columns ( tabulated under console , with wrap i suppose , wrap should be pretty simple if you know how many letter is each column ) now you could find the wrap code on the net by searching google , then you need it all recoreded in a SQL DB or in a file , documentation is again avalible on thi by searching http://www.google.com.

My point -> you might not find the full source , but you will find bits to put together.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.