++i 和 i++的实现 1、++i 实现: int& int::operator++() { *this +=1; return *this; } 2、i++ 实现: const int int::operator(int) { int oldValue = *this; ++(*this); return oldValue; }