Forum: C++ Jun 7th, 2008 |
| Replies: 5 Views: 1,016 //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 Hi,
Why dont use friend function for overloading *
Syntax
friend complex0 operator*(int, complex0&);
friend complex0 operator*(complex0&, int); |