LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help needed in operator>> overloading(C++) (https://www.linuxquestions.org/questions/linux-newbie-8/help-needed-in-operator-overloading-c-677789/)

jaji 10-20-2008 07:54 AM

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-

paulsm4 10-20-2008 09:32 PM

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


All times are GMT -5. The time now is 04:11 PM.