单选题
C++
题号 #144322
下面程序中对一维坐标点类Point进行运算符重载
#include
using namespace std;
class point {
public:
point (int vaI) {x=val;}
point& operator++(){x++;retum*this;}
print operator++(int) {point old=*this,++(*this);retum old;}
int GetX() const {retum x;}
private:
int x;
};
int main()
{
point a(10);
cout <<(++A..GetX();
cout < retum();
}
编译和运行情况是( )。
参考答案
B
答案解析
暂无解析
你可能感兴趣的试题
A.7
B.12
C.13
D.100
A.120
B.16
C.154
D.34