摘要: void fun(int (&array)[8]) { for(int i = 0;i<8;i++) { array[i] = i; } } void main() { int array[8] = {0}; fun(array); } 这样可以对array中参数修改后传参传出 阅读全文