文件名称:Archive
-
所属分类:
- 标签属性:
- 上传时间:2012-10-23
-
文件大小:5.19kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
实现一个三维点(x,y,z)的Point类。包含一个构造函数,一个复制构造函数,一个把这个点变成负的函数negate( ),一个返回到(0,0,0)点的距离的函数norm( )和一个print( )函数。
(1)为类Point实现一个重载的赋值运算符。
(2)为类Point实现重载的流插入运算符。
(3)为类Point实现重载的比较关系运算符==和!=。
(4)为类Point实现重载的加法+和减法运算符-。
(5)实现一个重载的乘法运算符*来返回两个Point类对象的点积。
-To achieve a three-dimensional point (x, y, z) of the Point class. Contains a constructor, a copy constructor, this point becomes a negative function negate (), a return to the (0,0,0) of a function of the distance norm (), and a print () function. (1) class Point to achieve an overloaded assignment operator. (2) class Point to achieve overloaded stream insertion operator. (3) Comparison of class Point to achieve overloaded relational operators == and! =. (4) To achieve the overloaded class Point addition+ and subtraction operator-. (5) to achieve an overloaded multiplication operator* to return two Point class object of the dot product.
(1)为类Point实现一个重载的赋值运算符。
(2)为类Point实现重载的流插入运算符。
(3)为类Point实现重载的比较关系运算符==和!=。
(4)为类Point实现重载的加法+和减法运算符-。
(5)实现一个重载的乘法运算符*来返回两个Point类对象的点积。
-To achieve a three-dimensional point (x, y, z) of the Point class. Contains a constructor, a copy constructor, this point becomes a negative function negate (), a return to the (0,0,0) of a function of the distance norm (), and a print () function. (1) class Point to achieve an overloaded assignment operator. (2) class Point to achieve overloaded stream insertion operator. (3) Comparison of class Point to achieve overloaded relational operators == and! =. (4) To achieve the overloaded class Point addition+ and subtraction operator-. (5) to achieve an overloaded multiplication operator* to return two Point class object of the dot product.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Cpp1.cpp
Cpp1.dsp
Cpp1.dsw
Cpp1.ncb
Cpp1.opt
Cpp1.plg
Cpp1.dsp
Cpp1.dsw
Cpp1.ncb
Cpp1.opt
Cpp1.plg
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.