文件名称:daima
介绍说明--下载内容来自于网络,使用问题请自行百度
1. 实现一个CComplex class(数学里的复数),练习运算符的重载。
要求具有以下操作:
①构造函数
②拷贝构造函数
③operator
④operator*
⑤operator+
⑥operator-
⑦operator/
⑧operator
⑨operator[]
⑩operator!
其中,复数类的实部和虚部的取值类型为float。
2. 用一个简单的程序,使用CComplex的各个成员函数和运算符。
3. 在CComplex中编写若干个虚函数,观察类对象有无虚函数内存结构的变化。
-1. Implement a CComplex class that exercises overloading of operators.
It requires the following actions:
① constructor function
② copy constructor
③operator
④operator*
⑤operator+
⑥operator-
⑦operator /
⑧operator
⑨operator []
⑩operator!
The real and imaginary parts of a complex class are of type float.
2. Using a simple program, use the CComplex member functions and operators.
3. In the CComplex in the preparation of a number of virtual function to observe whether the class object virtual memory structure changes....
要求具有以下操作:
①构造函数
②拷贝构造函数
③operator
④operator*
⑤operator+
⑥operator-
⑦operator/
⑧operator
⑨operator[]
⑩operator!
其中,复数类的实部和虚部的取值类型为float。
2. 用一个简单的程序,使用CComplex的各个成员函数和运算符。
3. 在CComplex中编写若干个虚函数,观察类对象有无虚函数内存结构的变化。
-1. Implement a CComplex class that exercises overloading of operators.
It requires the following actions:
① constructor function
② copy constructor
③operator
④operator*
⑤operator+
⑥operator-
⑦operator /
⑧operator
⑨operator []
⑩operator!
The real and imaginary parts of a complex class are of type float.
2. Using a simple program, use the CComplex member functions and operators.
3. In the CComplex in the preparation of a number of virtual function to observe whether the class object virtual memory structure changes....
(系统自动生成,下载前可以参看下载内容)
下载文件列表
daima.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.