????????
?????????????????????????????????????
????C++?????У?????????????????????????????
???????????? ??????????????
????1????????“?????”?????????
????????Func1 ?????????x ????????n ??????????
???????x ??????????n?? ????n ????????0??
????void Func1(int x)
????{
????x = x + 10;
????}
????int n = 0;
????Func1(n);
????cout << “n = ” << n << endl;// n = 0
????2????????“?????”?????????
????????Func2 ?????????x ???????????n ??????????????????????n ??????????n ??????10??
????void Func2(int *x)
????{
????(* x) = (* x) + 10;
????}
????int n = 0;
????Func2(&n);
????cout << “n = ” << n << endl; // n = 10
????3????????“???????”?????????
????????Func3 ?????????x ????????n ???????x ??n ???????????????x ??????n??????n ??????10??
????C++????  ??????
????void Func3(int &x)
????{
????x = x + 10;
????}
????int n = 0;
????Func3(n);
????cout << “n = ” << n << endl; // n = 10
??????????????????????????“???????”????????“?????”??????д?????
????“?????”???????“????”?????????κ?????“???”????????????????“????”
??????????
????????“??????????????????????”??
??????????????????????????е???ζ???????????????????????Σ???
????????????????????????????????????????????????????????
?????????????????????????????“????”???????“????”?????????“???”??
??????????????
?????????????????????????????????????????μ???????????
????????????μ?????????????????????????е??????