64,654
社区成员
发帖
与我相关
我的任务
分享
最近遇到一个题,大概是这样子的:
class A
{
public:
int x,y;
void display()
{
cout << "x=" << x << "y=" << y<<endl;
}
}
int main()
{
int A::*p;
p=&x;
p->display();
p=&y
p->display();
}
问输出什么?搞不懂。