.
来源:互联网 发布:比特币交易平台 知乎 编辑:程序博客网 时间:2024/04/27 07:09
#include <iostream>
using namespace std;
class Point
{
public:
Point()
{
cin>>x>>y;
}
void Move()
{
x+=xoff;
y+=yoff;
}
void Get()
{
cin>>xoff>>yoff;
}
float GetX()
{
return x;
}
float GetY()
{
return y;
}
private:
float x,y,xoff,yoff;
};
class Rect: public Point
{
public:
Rect()
{
Point();
cin>>w>>h;
Get();
}
float GetW()
{
return w;
}
float GetH()
{
return h;
}
private:
float w,h;
};
int main()
{
Rect
return 0;
}
using namespace std;
class Point
{
public:
Point()
{
cin>>x>>y;
}
void Move()
{
x+=xoff;
y+=yoff;
}
void Get()
{
cin>>xoff>>yoff;
}
float GetX()
{
return x;
}
float GetY()
{
return y;
}
private:
float x,y,xoff,yoff;
};
class Rect: public Point
{
public:
Rect()
{
Point();
cin>>w>>h;
Get();
}
float GetW()
{
return w;
}
float GetH()
{
return h;
}
private:
float w,h;
};
int main()
{
Rect
return 0;
}
阅读全文
0 0
- 程序员
- 程序员?
- 程序员
- 程序员
- 程序员
- 程序员
- 程序员
- 程序员
- 程序员
- 程序员
- 程序员
- 程序员
- 程序员
- 程序员
- 程序员
- 程序员
- 程序员
- 程序员
- blend画图技巧
- 并发库之同步屏障
- RecyclerView
- 用js快速动态生成bootstrap table表格数据
- 蓝牙5:速度更快,范围更广,新的RF测试---电子技术资料
- .
- 2017ACM/ICPC亚洲区沈阳站【solved:6 / 13】
- MySql 的group by having 优化案例
- poi 读取写入excel
- UE4入门-常见的对象-概述
- DUBBO集群容错与负载均衡
- C++连接mysql数据库简单小例子(使用ODBC)
- 2017-12-08 python笔记2
- Ubuntu第一次登录给root用户设置密码