954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Phone book using C++

Hi all,

I am new to OOP. I am using classes to create a phone book in C++. I don't know how to program, when the user enters the information and click save to generate a file. Also, how do I make GUI using C++.
Can any one help me out?

Thanks
Prab

prab
Newbie Poster
1 post since Jun 2008
Reputation Points: 10
Solved Threads: 0
 

http://linux.softpedia.com/get/Programming/Widgets/Qt-179.shtml

Yoe can easily follow this by referring Qt assistant

RenjithVR
Light Poster
41 posts since Mar 2008
Reputation Points: 12
Solved Threads: 7
 

Check out www.cplusplus.com . It's filled with information about file IO, strings, user input, and lots more. You might not want to make a GUI if you are very new to C++ and OOP.

TheBeast32
Posting Whiz in Training
236 posts since Dec 2007
Reputation Points: 79
Solved Threads: 6
 

try a hello world program.

camthalion95
Junior Poster in Training
59 posts since May 2008
Reputation Points: -14
Solved Threads: 0
 

once you get started with your phone book, I'd suggest these two classes

class personalNumber{
public:
personalNumber(string, number);
string getName(void);
int getPhoneNumber(void);

//...
private:

string name;
int number;

//...
}


and

class businessNumber{
//...
}


object orientation means separating things into discrete, identifiable units... it's kind of like building robots

... you start with a bolt and plates to build an arm, you take two arms and some plates and build a torso...

ninjaneer
Junior Poster in Training
56 posts since Jun 2008
Reputation Points: 10
Solved Threads: 6
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You