-
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
-
lab7
说明: 计算方法的上机编程题,计算方法的上机编程题。计算方法的上机编程题(Method of calculation-on programming problems, the calculation-on programming problems. Programming-on method of calculation problems)
- 2010-03-24 23:09:20下载
- 积分:1
-
Matlab-cPP
,从Matlab调用C/C++代码及C/C++调用m文件两方面,深入地研究了它们之间混合编程的原理和实现机制,并且给出了具体条件下的混合编程方法和步骤。实例表明,提出的Matlab与C/C++混合编程方法是简洁、有效的。 更多还原
(Two aspects, called from Matlab the C/C++ code, C/C++ call m files, in-depth study of the principles and implementation mechanisms of mixed programming between them, and given the mixed programming methods and steps under specific conditions. The examples show that the proposed Matlab and C/C++ hybrid programming method is simple, effective. More Restore)
- 2013-03-19 14:14:58下载
- 积分:1
-
svdl
实现奇异值分解,可以去除随机噪声,在物探领域应用广泛(Realize the singular value decomposition and reconstruction)
- 2014-12-10 20:25:31下载
- 积分:1
-
MFC_matlab
程序实现了C++和MATLAB的混合编程,对接的方法是使用Matcom组件。程序实现的功能是,绘制一个sin函数。(Program implements C++ and MATLAB mixed programming, docking method is to use Matcom components. Program' s function is to draw a sin function.)
- 2013-08-13 16:56:57下载
- 积分:1
-
3.18
编写程序来创建有10个元素的vector对象。用迭代器把每个元素值改为当前值的2倍。(Write a program to create vector objects have 10 elements. With the value of each element iterator to 2 times the current value.)
- 2015-03-04 15:15:37下载
- 积分:1
-
vc+matlab
matlab 与 vc++接口五种不同的方法与实例(vc Matlab interface with five different methods and examples)
- 2006-06-15 11:56:16下载
- 积分:1
-
Win32GUI
windows gui wrapper for fb
- 2013-12-12 15:44:33下载
- 积分:1
-
TSP-PSO
TSP-PSO算法的matlab程序文件,有助于了解该算法(The produce of matlab about TSP-POS)
- 2013-04-13 22:37:55下载
- 积分:1
-
SimulinkModelCComplier
介绍了如何利用Matlab的代码生成功能将Simulink模型转换成目标语言模型的方法(The way that how to use the capability of Matlab in code generation to convert the mode1s constructed by Simulink to target language models is introduced)
- 2009-09-12 16:55:04下载
- 积分:1