文件名称:polynomial
-
所属分类:
- 标签属性:
- 上传时间:2013-05-12
-
文件大小:1.61kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
H11增强Polynomial类
(1) 以动态数组实现多项式类。多项式系数的最大上限为int数据类型能表示的最大整数,但在构建对象时不指定系数上限
(2) 对两个Polynomial类对象的运算,分别重载“+”“-”运算,并能够级联调用
(3) 重载“<<”操作符,并能级联调用。
(4) 重载赋值运算符“=”,思考为何必须重载该运算符,如果不重载会发生什么问题?
-H11 Enhanced the Polynomial class (1) dynamic array polynomial class. The maximum upper limit of the polynomial coefficients int data type can represent the largest integer, but do not specify when the object is to build the upper limit of the coefficient (2) of two Polynomial class object computing, reload+ " -" operator, and be able to level joint call to (3) " < < " operator is overloaded and can be cascaded call. (4) The overloaded assignment operator " =" , think about why it is necessary to override the operator, what happens if you do not reload?
(1) 以动态数组实现多项式类。多项式系数的最大上限为int数据类型能表示的最大整数,但在构建对象时不指定系数上限
(2) 对两个Polynomial类对象的运算,分别重载“+”“-”运算,并能够级联调用
(3) 重载“<<”操作符,并能级联调用。
(4) 重载赋值运算符“=”,思考为何必须重载该运算符,如果不重载会发生什么问题?
-H11 Enhanced the Polynomial class (1) dynamic array polynomial class. The maximum upper limit of the polynomial coefficients int data type can represent the largest integer, but do not specify when the object is to build the upper limit of the coefficient (2) of two Polynomial class object computing, reload+ " -" operator, and be able to level joint call to (3) " < < " operator is overloaded and can be cascaded call. (4) The overloaded assignment operator " =" , think about why it is necessary to override the operator, what happens if you do not reload?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
polynomial/
polynomial/main.cpp
polynomial/Polynomial.cpp
polynomial/Polynomial.h
polynomial/main.cpp
polynomial/Polynomial.cpp
polynomial/Polynomial.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.