初学c++,遇到一道题,看了好久不懂,求高手赐教。

[复制链接]
查看11 | 回复3 | 2012-7-31 10:53:34 | 显示全部楼层 |阅读模式
#include using namespace std;class Point{public:Point(int i,int j):x(i),y(j) {}int GetX() { return x; }int GetY() { return y; }// ERROR **********found**********void Move(int xOff=0,int yOff=0) { x=xOff; y=yOff; }private:int x,y;};int main(){Point one(5,5);// ERROR ******...
回复

使用道具 举报

千问 | 2012-7-31 10:53:34 | 显示全部楼层
#include using namespace std;class Point{public:Point(int i,int j):x(i),y(j) {}int GetX() { return x; }int GetY() { return y; }// ERROR **********...
回复

使用道具 举报

千问 | 2012-7-31 10:53:34 | 显示全部楼层
#include using namespace std;class Point{public:Point(int i,int j):x(i),y(j) {}int GetX() { return x; }int GetY() { return y; }// ERROR **********...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行