我最亲爱的说

子非鱼,焉知鱼之乐.

导航

2013年3月9日 #

[c++]形参实参

摘要: #include <iostream>#include <string>using namespace std;int main(){ string strA; void printtt(string strA); strA = "1"; printtt(strA); cout<<strA<<endl; system("pause");}void printtt(string strA){ strA ="22";}//在自定义函数中 修改了 传入的数组参数 会引起实参的改变22请按任意键 阅读全文

posted @ 2013-03-09 19:35 我最亲爱的说 阅读(228) 评论(0) 推荐(0)