CS 340 - 2/4/13 operator ++ or -- ++i i++ j = ++i; // unary prefix j = i++; // binary postfix j = +k; j = -k; j = m+n; j = m-n; Complex c1, c2; ++c1; // c1.operator++( ); c2 = ++c1; // c2 = c1.operator++( ); Note: Using return-by-reference class Complex { .... Complex& operator++ ( ); }; Complex& Complex::operator++ () { real_ = real_ + 1.0; // ++real_ return *this; } The following return-by-refernce usage is an ERROR Complex& Complex::methodX(int deltaR, int deltaI) { Complex temp (real_ + deltaR, imag_ + deltaI); return temp; } Homework what is the error??? The above is a great place for a return-by-reference CAUTION: USE ONLY AS DIRECTED