CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 数值算法/人工智能 数据结构常用算法

文件名称:exp2_4 建立一个复数类imaginary

介绍说明--下载内容来自于网络,使用问题请自行百度

建立一个复数类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.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com