LinuxQuestions.org
Visit Jeremy's Blog.
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, 08: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, 10: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:30 AM
help overloading 'new' operator c++ qwijibow Programming 1 03-07-2007 05:58 PM
c++ [] operator overloading exodist Programming 12 04-17-2004 04:06 PM
C# with dotGNU, operator overloading exodist Programming 2 03-15-2004 06:52 PM
Builtin operator overloading. exodist Programming 15 03-11-2004 11:41 PM


All times are GMT -5. The time now is 08:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration