-
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
-
ERLANGB
仿真排队论,统计不同话务量的情况下的阻塞率(Simulation of queuing theory, statistical difference in cases where traffic blocking probability)
- 2009-12-12 16:56:16下载
- 积分:1
-
Matlab-JTD
最近找的求解方程的程序,可以借鉴下,挺好的(Solving equations to find the most recent program, you can learn, the very good)
- 2011-09-28 08:40:50下载
- 积分:1
-
Eigenvalue
特征值分析,便于模态分析电网稳定态态势分析和薄弱环节识别(Eigenvalue analysis, to facilitate modal analysis grid steady state trend analysis and identification of weak links)
- 2013-02-02 23:41:29下载
- 积分:1
-
cpu
采用仿真实验的方法,分析和评价FCFS、SJF、RR和MLFS算法的优劣,用c++实现四种调度算法,源代码如下,思路程序内有注解(Method using simulation, analysis and evaluation of FCFS, SJF, RR, and MLFS merits of the algorithm, using c++ to achieve the four scheduling algorithms, source code is as follows, ideas, comments within the program)
- 2011-05-04 19:47:14下载
- 积分:1
-
houghtest
使用hough变换检测直线的matlab程序(Detect the use of straight line hough transform matlab program)
- 2009-03-30 09:41:35下载
- 积分:1
-
matlab
matlab書籍的簡介 張智星 適合剛入門程式語言的人(Zhang Zhi brief introduction matlab book stars)
- 2009-03-26 17:48:02下载
- 积分:1
-
Failure-Mode-and-Reliability
结构系统失效模式可靠性Monte-Carlo法
结构系统失效模式研究与可靠性分析(Structural system reliability failure modes Monte-Carlo method structural system reliability analysis and failure mode study)
- 2013-12-18 19:43:11下载
- 积分:1
-
Laba_2
Default constructor
MyString::MyString()
{
m_szString = NULL
m_aSize = 0
cout << "Default constructor from my sting
"
}
- 2010-01-21 00:08:12下载
- 积分:1
-
Assignment3
matlab about interpolation image processing, sfu, burnaby, bc, canada, v5a3z3
- 2015-01-23 14:14:18下载
- 积分:1