#include<stdio.h>
void test(int &x){
x = 1024;
printf("test函数内部 x = %d\n",x);
}
int main(){
int x = 1;
printf("调用前test前 x=%d\n",x);
test(x);
printf("调用test后 x = %d\n",x);
}
数据结构-线性表的定义与运算
猜你喜欢
转载自blog.csdn.net/LOVE_Me__/article/details/117632521
今日推荐
周排行