C++ 数组参数传递
摘要:
http://www.cnblogs.com/macula7/archive/2009/04/14/1960828.html#include//传递数组参数的几种方式void printValues(const int a [10]){ for(int i=0;i!=10;i++) cout<<a[i]<<endl;} void printValues2(int a [10]){ for(int i=0;i!=10;i++) cout<<a[i]<<endl; a[5]=100;}void printValues3(int (&a) [1 阅读全文
posted @ 2013-08-10 16:32 berkeleysong 阅读(160) 评论(0) 推荐(0)
浙公网安备 33010602011771号