文件名称:complex
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2017-10-11
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- HHr00*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
创建一个复数类Complex,用来执行复数的算术运算,并编写一个程序来测试该类。
(1)该类有两个成员变量
(2)定义一个构造函数,用来对类对象进行初始化
(3)定义一个add成员函数,实现两个复数的加法
(4)定义一个sub成员函数,实现两个复数的减法
(5)定义一个void print( )成员函数,在屏幕上打印当前复数(Create a complex class Complex, which is used to perform arithmetic operations in complex numbers, and write a program to test that class.
(1) the class has two member variables
(2) define a constructor that initializes the class object
(3) define a add member function to implement the addition of two complex numbers
(4) define a sub member function to implement the subtraction of two complex numbers
(5) define a void print () member function, print the current complex number on the screen)
(1)该类有两个成员变量
(2)定义一个构造函数,用来对类对象进行初始化
(3)定义一个add成员函数,实现两个复数的加法
(4)定义一个sub成员函数,实现两个复数的减法
(5)定义一个void print( )成员函数,在屏幕上打印当前复数(Create a complex class Complex, which is used to perform arithmetic operations in complex numbers, and write a program to test that class.
(1) the class has two member variables
(2) define a constructor that initializes the class object
(3) define a add member function to implement the addition of two complex numbers
(4) define a sub member function to implement the subtraction of two complex numbers
(5) define a void print () member function, print the current complex number on the screen)
相关搜索: java
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Test.class
Complex.class
Complex.class