文件名称:complex
-
所属分类:
- 标签属性:
- 上传时间:2017-10-11
-
文件大小:1kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
创建一个复数类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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.