LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2008, 07:54 AM   #1
jaji
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Help needed in operator>> overloading(C++)


Hello,
i have some problem doing operator>> overloading in C++..
the detail is below:

-i have created a class name phone
-i have declared 2 objects name phone1 and phone 2
-how can i perform phone1>>phone2; successfully?

please help me with this problem..
thanx for your time..
-jaji-
 
Old 10-20-2008, 09:32 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Sounds like homework ;-)

I'd look under "operator overloading" in your text book.

Here's a good tutorial:
http://www.see.ed.ac.uk/~sasg/Comput.../Cpp/cpp6.html

Definitely post back with specific questions. And definitely include code showing what you've tried.

Good luck .. PSM
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(C++) operator = overloading with gcc 4.0.1 Omni Programming 7 10-16-2007 06:30 AM
help overloading 'new' operator c++ qwijibow Programming 1 03-07-2007 04:58 PM
c++ [] operator overloading exodist Programming 12 04-17-2004 03:06 PM
C# with dotGNU, operator overloading exodist Programming 2 03-15-2004 05:52 PM
Builtin operator overloading. exodist Programming 15 03-11-2004 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration