大家莱试试这两段代码,看看结果是什么,为什么呢?

int i=3; int j=3; i = pow(++i,2); j = pow(j++,2); cout<<i<<endl; cout<<j<<endl;

int i = 0; int j = 0; if (++i) i++; if (j++) j++; cout<<i<<endl; cout<<j<<endl;
int i=3; int j=3; i = pow(++i,2); j = pow(j++,2); cout<<i<<endl; cout<<j<<endl;
int i = 0; int j = 0; if (++i) i++; if (j++) j++; cout<<i<<endl; cout<<j<<endl;