void fun1(int& a) { a++; } int main() { int zz=3; fun1(zz); cout<<zz; system("pause"); return 0; } 注意这里输出值是4