龙之吻 · 2006-10-25 02:55:07 · 阅读: 297 3.引用传递 3.引用传递 void Func3(int &x) { x=x+10;//修改的是x引用到的对象n } int n=0; Func3(n); cout<<"n="<<n<<endl;//n=10