搜索资源列表
Calc
- 简单的计算器编程,实现加减乘除基本操作,运算结果为double类型。运行时如果遇到问题,可以把按钮上的图片代码去掉,然后按将button的text改为从1、2、3…8、9、0即可运行成功。-Simple computer program, to achieve the basic operation of addition and subtraction multiplication and division, the result is double type operation. If yo
ComplexNumber
- (1)编写一个复数类ComplexNumber,其中包括实例变量real、image,方法如下: 1)构造方法 ComplexNumber(double a,double b) 2) ComplexNumber add(ComplexNumber x) //当前复数对象与另一复数对象进行复数的加法运算,返回一新的复数对象 3) ComplexNumber sub(ComplexNumber x) //当前复数对象与另一复数对象进行复数的减法运算,返回一新的复数对象 4)double getRea