摘要:
一、主要作用 用作函数的形参a)未使用“引用”作为形参1 void SetValue(int _Height)2 {3 _Height=99;4 }5 int Height=10;6 SetValue(Height);7 cout<<"设置之后Height的值为:"<<Height<<endl;8 system("pause");9 return 0; 运行结果: 内存分配: b)使用“引用”作为形参1 void SetValue(int &_Height)2 {3 _Height=99;4 }5 int He 阅读全文
posted @ 2011-08-28 23:22
edisonfeng
阅读(553)
评论(1)
推荐(0)
浙公网安备 33010602011771号