登录
首页 » Visual C++ » Archive

Archive

于 2013-12-18 发布 文件大小:1KB
0 255
下载积分: 1 下载次数: 2

代码说明:

  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.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • HPxStandalone
    雷达采集卡应用接口代码,用于控制雷达采集卡采集雷达视频数据。(Radar data capture software code.)
    2015-03-11 21:50:07下载
    积分:1
  • exp
    使用MATLAB程序通过18个循环,求最少费用的问题.(new Cumulative )
    2013-05-15 23:09:21下载
    积分:1
  • MatComTest
    在VC++中使用Matlab的示例,使用了matcom,说明见PDF文档(In the VC++ examples of the use of Matlab, using matcom, instructions see the PDF document)
    2010-03-06 22:52:54下载
    积分:1
  • optimize
    复合形优化算法的VC2005环境下的实现实例,是本人一次研究生期末作业,附带详细论文说明。(Optimization of complex environment to achieve VC2005 example, is a graduate student at the end of my work, with a detailed description papers.)
    2009-04-27 10:14:13下载
    积分:1
  • TSP
    说明:  介绍求解TSP 问题的蚁群算法,是解决旅行售货员问题的一种比较好的方法(Introduced to solve the ant colony algorithm for TSP problem is to solve the traveling salesman problem of a better way to)
    2009-08-21 09:57:16下载
    积分:1
  • SytheticRec_MATLAB
    用matlab合成地震记录,matlab代码,石油勘探,地震正演模拟(sythetic seismic record with matlab)
    2013-11-29 13:10:25下载
    积分:1
  • variable-speed-Traffic
    程序是基于元胞自动机的交通模型,主要是针对单车道、单车变数运动的描述(Program is based on cellular automaton traffic model for the description of the movement of bicycle paths, cycling variables)
    2012-09-13 11:41:50下载
    积分:1
  • 31856matlabvc
    主要是MATLAB与VC的链接,是从别人哪里弄过来的,和大家一起分享一下!希望对大家可以有用!~~(MATLAB and VC are the main link where other people get from the back, and to share with everyone! Hope everyone can be useful! ~ ~)
    2009-02-23 13:13:13下载
    积分:1
  • stone
    说明:  经典的石子划分问题,不同质量和数量的石子进行划分,以求最优解(Classic stone division, different quality and quantity of stones to be divided, with a view to the optimal solution)
    2010-04-19 23:46:51下载
    积分:1
  • zzt006
    一个介绍VC++与MATLAB混合编程的电子书籍。可以指导在VC++6.0下进行MATLAB接口的调用。(Introduced a VC++ and MATLAB programming hybrid e-books. Can guide in the VC++6.0 under the call MATLAB interface.)
    2009-04-30 12:02:25下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载