-
Archive
4) 创建一个名为Complex的类,进行复数的算术运算。复数的形式为:
realpart+imaginarypart*i
用浮点变量表示类的private数据。提供构造函数,能够对所声明的该类对象进行初始化。在不提供初始化值的情况下,该构造函数应包含默认值。针对以下功能,分别提供一个public成员函数。
(1)两个复数相加;
(2)两个复数相减
(3)用(a, b)的形式打印复数,其中a为实部,b为虚部。
(4) Create a class called Complex, and perform complex arithmetic operations. Plural form: realpart+imaginarypart* i said private data class with floating point variables. Provide a constructor, the object can be declared for the class is initialized. In the case do not provide initialization values, the constructor should contain default values. For the following functions, which provide a public member function. (A) two complex numbers (2) the subtraction of two complex (3) (a, b) in the form of plural printing, where a is the real part, b is the imaginary part.)
- 2013-12-18 15:14:46下载
- 积分:1
-
19_04
Adaptive background mixture models for real-time tracking
- 2015-03-15 19:05:15下载
- 积分:1
-
cnh
学习matlab的解微分方程的小程序,已经测试无误(The solution of differential equations matlab learning applets, have been tested correctly)
- 2011-09-27 08:30:28下载
- 积分:1
-
Demo
C++ 生成Code编码 流程检查等多功能实现 实际问题都 可以解决(if you want this please find)
- 2014-08-22 22:11:18下载
- 积分:1
-
121
功能:输入一页文字,程序可以统计出文字、数字、空格的个数功能:输入一页文字,程序可以统计出文字、数字、空格的个数(code)
- 2009-12-24 11:19:30下载
- 积分:1
-
Pointers-and-Arrays
This Chapter deals with POinters and Arrays. Sample Programs are given to workout in C++ environment.
- 2014-09-16 23:41:56下载
- 积分:1
-
Elec.-Billll
project on electric bill details that store all the detail of bill.
- 2015-03-30 13:07:01下载
- 积分:1
-
PF_codes_boat
粒子滤波,采用matlab与vc共同编写,注意在运行之前需要 在matlab环境下,运行
- 2014-09-11 16:11:27下载
- 积分:1
-
20084WANGGONG
说明: 2008年4月网工真题.doc 对各位考生有很大的帮助,希望各位考上(April 2008 Network Engineering 真题. Doc candidates of you very helpful, hope you admitted to)
- 2010-04-25 10:31:52下载
- 积分:1
-
SHUJUTONGJI
一个简单的数据统计软件,包括了计算方差等各种功能(A simple statistical software, including a variety of functions such as calculating the variance)
- 2014-06-18 00:24:49下载
- 积分:1