// 前缀形式:增加然后取回值UPInt& UPInt::operator++(){ *this += 1; // 增加 return *this; // 取回值}// postfix form: fetch and incrementconst UPInt UPInt::operator++(int){ UPInt oldValue = *this; // 取回值 ++(*this); // 增加 return oldValue; // 返回被取回的值}