-
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
-
electromagnetic-radiation
电磁射线理论的经典教材,通信信道仿真必备(Classic textbook theory of electromagnetic radiation, an essential communication channel simulation)
- 2013-12-04 12:50:57下载
- 积分:1
-
progiymminmcablechope
一个VC和MATLAB联合编程的简单的例子,希望能对你有所帮助,(A simple example of VC and MATLAB programming, hope to be able to help you,)
- 2017-04-29 18:58:57下载
- 积分:1
-
xiliepingshun
求解系列重型商用车的平顺性,求解结果收敛性良好。(Solving a series of heavy commercial vehicles, ride comfort, and solving the resulting convergence is good.)
- 2012-08-15 11:42:01下载
- 积分:1
-
binary-amplitude-shift
在现代通信原理课程中,在MATLAB中实现二进制幅移键控调制程序。(In modern communication theory course, to implement in MATLAB binary amplitude shift keying modulation program.)
- 2011-10-04 10:42:12下载
- 积分:1
-
VCMATLAB
如何用VC6.0和MATLAB进行联合编程文章(How to conduct a joint program VC6.0 and MATLAB article)
- 2009-11-19 21:30:54下载
- 积分:1
-
costas2
使用MATLAB 代码完成COSTAS环对QPSK调制的解调载波频率的跟踪(Use MATLAB code completion COSTAS loop tracking of QPSK modulation carrier frequency demodulation)
- 2015-09-07 18:34:08下载
- 积分:1
-
Matlab_GM(1_1)coding
灰色预测模型算法的程序设计方法,可实现未来数据预测功能(Gray prediction model algorithm programming method can achieve future data prediction function)
- 2013-04-06 13:53:37下载
- 积分:1
-
cmac(matlab)
artificial intelligence
- 2012-01-26 20:50:29下载
- 积分:1
-
mytry_02
程序控制编程实例24 如何设计多层嵌套异常捕获错误(Programming examples of process control 24 how to design multi-layer nested Exception Catching errors)
- 2007-11-13 21:17:59下载
- 积分:1