文件名称:chongzaiyunsuan
介绍说明--下载内容均来自于网络,请自行研究使用
1、 对Point类重载++和――运算符
编写C++程序完成以下功能:
(1) Point类的属性包括点的坐标(x,y);
(2) 实现 Point类重载++和――运算符:
++p,--p,p++,p--。
++和――分别表示x,y增加或减少1。
-1, on the Point-type heavy-duty and- operator prepared C++ Process is complete the following functions: (1) Point-type properties, including the coordinates of points (x, y) (2) the realization of Point-type heavy-duty and- Operators:
编写C++程序完成以下功能:
(1) Point类的属性包括点的坐标(x,y);
(2) 实现 Point类重载++和――运算符:
++p,--p,p++,p--。
++和――分别表示x,y增加或减少1。
-1, on the Point-type heavy-duty and- operator prepared C++ Process is complete the following functions: (1) Point-type properties, including the coordinates of points (x, y) (2) the realization of Point-type heavy-duty and- Operators:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1.cpp