多选题

有下列类定义 #include using...

发布于 2022-03-03 14:06:56

有下列类定义
#include<iostream>
using namespace std
class Point {
public:
    Point(int a=3,int b=5){ X=aY=b}
    int GetX(){return X}
    int GetY(){return Y}
private:
    int  X,Y
}
现有语句Point *p=new Point[2]则与(*p).GetX()等效的表达式是(      )?

登录后免费查看答案
关注者
0
被浏览
12
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看