java构造实部与虚部,1.定义一个复数类Complex,该类有代表实部与虚部的成员变量,有两个构造函数Complex()...

other.acadc16.svg

1.定义一个复数类Complex,该类有代表实部与虚部的成员变量,有两个构造函数Complex()

date.3402d68.svg 2016-08-23

download.d149a6d.svg 0

like.6b1b328.svg 0

collect.2156630.svg 0

暂无评分

classify.8d164f6.svg

其他

points_download.ebc3e32.svg 1

积分下载

question.bf77ac6.svg

如何获取积分?

1.定义一个复数类Complex,该类有代表实部与虚部的成员变量,有两个构造函数Complex()与Complex(int x,int y)分别完成将成员变量初始化为0及给定值,另有计算复数的加减法及输出复数的三个方法,编程序利用该类完成2+3i与6-8i相加,12+9i与20-8i相减,并利用复数的输出方法将结果输出。-Define a complex number class Complex, the class is represented real and imaginary parts of the member variable, there are two constructor Complex () and the Complex (int x, int y) of the respective member variables will be initialized to 0 and the given value Another calculation of complex addition and subtraction method and output the plural of the three methods, programmed to use the class to complete 2+3 i and 6-8i sum, 12+9 i and subtract 20-8i, and the use of the plural output method results output.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值