65,211
社区成员
发帖
与我相关
我的任务
分享
#include <iostream.h>
int& f(int x)
{
return x+1;
}
void main()
{
int x=2;
f(x)=3;
cout < <x < <endl;
}
#include <iostream.h>
int& f(int x[])
{
return x[0];
}
void main()
{
int x[]={2};
cout < <f(x) < <endl;
f(x)=3;
cout < <x[0] < <endl;
}