Search Results

Showing results 1 to 2 of 2
Search took 0.01 seconds.
Search: Posts Made By: selvaganapathy ; Forum: C++ and child forums
Forum: C++ Jun 7th, 2008
Replies: 5
Views: 1,016
Posted By selvaganapathy
//overload operator*
it is similar to overloading << and >>
Just give declaration inside complex0 class as friend.

friend complex0 operator* (int no, complex0& com);


complex0...
Forum: C++ Jun 7th, 2008
Replies: 5
Views: 1,016
Posted By selvaganapathy
Hi,
Why dont use friend function for overloading *
Syntax
friend complex0 operator*(int, complex0&);
friend complex0 operator*(complex0&, int);
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC