c++ cZar
Thursday, October 21, 2010
Overloading < And >
Without friend
int operator > (const Complex& right) const { return (real > right.getReal() && img > right.getImg(); }
Using Friend
friend int operator < (const Complex& left, const Complex& right){----//TODO}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment