6.++,–的前置和后置哪个性能好? 代码说明一切 //前置式 A& A::operator++(){//效率高 *this+=1; return *this; } //后置式 const A A::operator++(int){ A oldvalue=*this; ++(*this);//用前置实现,方便维护,复用 return oldvalue; }