64,646
社区成员
发帖
与我相关
我的任务
分享
void hanshu()
{
void *r=hanshu;
}
int& func()
{
int i=7;
return i;
}
void hanshu()
{
int i=8;
}
int main()
{
int& p=func();
int x=p;
hanshu();
cout <<p <<endl;
cout <<x <<endl;
return 0;
}
8
7
请按任意键继续. . .