文件名称:5090309275_1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:906.97kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
创建一个名为Complex的类,进行复数的运算。Complex需要具有的功能:提供一个构造函数,它使这个类的对象在声明时得以初始化;
提供一个拷贝构造函数用来创建对象;
两个Complex的加法;实部相加,虚部相加;
两个Complex值相减:实部相减,虚部相减
两个Complex值相乘
以(a + b * i)的形式打印Complex的值,其中a为实部,b为虚部。-Create a class called Complex to carry out complex calculations. Complex need to do: provide a constructor, it makes the object of this class can be initialized in the declaration to provide a copy constructor to create objects the addition of two Complex real sum, the imaginary part of the sum two Complex subtracted: subtract the real part, imaginary part of the subtraction of two Complex values ??multiplied by (a+ b* i) the value in the form of printed Complex, where a is real part, b is the imaginary part.
提供一个拷贝构造函数用来创建对象;
两个Complex的加法;实部相加,虚部相加;
两个Complex值相减:实部相减,虚部相减
两个Complex值相乘
以(a + b * i)的形式打印Complex的值,其中a为实部,b为虚部。-Create a class called Complex to carry out complex calculations. Complex need to do: provide a constructor, it makes the object of this class can be initialized in the declaration to provide a copy constructor to create objects the addition of two Complex real sum, the imaginary part of the sum two Complex subtracted: subtract the real part, imaginary part of the subtraction of two Complex values ??multiplied by (a+ b* i) the value in the form of printed Complex, where a is real part, b is the imaginary part.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
5090309275_1/5090309275_1实验报告.doc
5090309275_1/complex.cpp
5090309275_1/complex.dsp
5090309275_1/complex.dsw
5090309275_1/complex.h
5090309275_1/complex.ncb
5090309275_1/complex.opt
5090309275_1/complex.plg
5090309275_1/Debug/complex.exe
5090309275_1/Debug/complex.ilk
5090309275_1/Debug/complex.obj
5090309275_1/Debug/complex.pch
5090309275_1/Debug/complex.pdb
5090309275_1/Debug/vc60.idb
5090309275_1/Debug/vc60.pdb
5090309275_1/Debug
5090309275_1
5090309275_1/complex.cpp
5090309275_1/complex.dsp
5090309275_1/complex.dsw
5090309275_1/complex.h
5090309275_1/complex.ncb
5090309275_1/complex.opt
5090309275_1/complex.plg
5090309275_1/Debug/complex.exe
5090309275_1/Debug/complex.ilk
5090309275_1/Debug/complex.obj
5090309275_1/Debug/complex.pch
5090309275_1/Debug/complex.pdb
5090309275_1/Debug/vc60.idb
5090309275_1/Debug/vc60.pdb
5090309275_1/Debug
5090309275_1
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.