943,669 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3101
  • C++ RSS
Jul 2nd, 2008
0

Phone book using C++

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
prab is offline Offline
1 posts
since Jun 2008
Jul 2nd, 2008
0

Re: Phone book using C++

http://linux.softpedia.com/get/Progr...s/Qt-179.shtml

Yoe can easily follow this by referring Qt assistant
Last edited by RenjithVR; Jul 2nd, 2008 at 2:42 am.
Reputation Points: 12
Solved Threads: 7
Light Poster
RenjithVR is offline Offline
41 posts
since Mar 2008
Jul 2nd, 2008
0

Re: Phone book using C++

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.
Reputation Points: 79
Solved Threads: 6
Posting Whiz in Training
TheBeast32 is offline Offline
236 posts
since Dec 2007
Jul 3rd, 2008
-2

Re: Phone book using C++

try a hello world program.
Reputation Points: -14
Solved Threads: 0
Junior Poster in Training
camthalion95 is offline Offline
59 posts
since May 2008
Jul 3rd, 2008
0

Re: Phone book using C++

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

C++ Syntax (Toggle Plain Text)
  1. class personalNumber{
  2. public:
  3. personalNumber(string, number);
  4. string getName(void);
  5. int getPhoneNumber(void);
  6.  
  7. //...
  8. private:
  9.  
  10. string name;
  11. int number;
  12.  
  13. //...
  14. }

and
C++ Syntax (Toggle Plain Text)
  1. class businessNumber{
  2. //...
  3. }

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...
Reputation Points: 10
Solved Threads: 6
Junior Poster in Training
ninjaneer is offline Offline
56 posts
since Jun 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: New in c++
Next Thread in C++ Forum Timeline: can 2 programs access the same file?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC