文件名称:exp2_4 建立一个复数类imaginary
-
所属分类:
- 标签属性:
- 上传时间:2012-08-30
-
文件大小:10kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
建立一个复数类imaginary,其私有数据成员x和y表示复数的实部和虚部,构造函数imaginary用于对复数的实部和虚部初始化,友员函数add,sub,mul和div分别用于进行复数的加、减、乘和除法运算,静态函数show用于显示运算结果。在主函数中,实例化两个复数,并输入一个运算符,按运算符选择相应的友员函数进行复数运算,然后输出运算结果。
-The establishment of a complex class imaginary, its private data members x and y represent complex real and imaginary parts, used for complex constructor imaginary real and imaginary parts of initialization, Friends of the member functions add, sub, mul and div respectively. used for complex addition, subtraction, multiplication and division, show a static function used to display calculation results. In the main function, examples of two complex numbers, and enter an operator, press operator to select the appropriate member of the Friends of the complex computing functions, then the output result of the operation.
-The establishment of a complex class imaginary, its private data members x and y represent complex real and imaginary parts, used for complex constructor imaginary real and imaginary parts of initialization, Friends of the member functions add, sub, mul and div respectively. used for complex addition, subtraction, multiplication and division, show a static function used to display calculation results. In the main function, examples of two complex numbers, and enter an operator, press operator to select the appropriate member of the Friends of the complex computing functions, then the output result of the operation.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
exp2_4/
exp2_4/exp2_4.cpp
exp2_4/exp2_4.dsp
exp2_4/exp2_4.dsw
exp2_4/exp2_4.ncb
exp2_4/exp2_4.opt
exp2_4/exp2_4.plg
exp2_4/ReadMe.txt
exp2_4/StdAfx.cpp
exp2_4/StdAfx.h
exp2_4/exp2_4.cpp
exp2_4/exp2_4.dsp
exp2_4/exp2_4.dsw
exp2_4/exp2_4.ncb
exp2_4/exp2_4.opt
exp2_4/exp2_4.plg
exp2_4/ReadMe.txt
exp2_4/StdAfx.cpp
exp2_4/StdAfx.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.