import javax.swing.JOptionPane; public class Complex {
private double real ;
private double image;
public Complex。{
this . real = 0.0;
this . image = 0.0; }
public Complex( double real, double image) {
this . real = real;
this . image = image; }
public void show1(){
System. out .print(实部+this . real +);
System. out .println( 虚部+this . image);
}
public void show() {
if (( this . real == 0.0) ( this . image == 0.0))
System. out .println( 0);
else if ( this . real == 0.0)
System. out .println( this . image + i);
else if ( this . image == 0.0)
System. out .println( this . real );
else
System. out
您可能关注的文档
最近下载
- 水泥混凝土面层施工工艺PPT课件.ppt VIP
- 食源性疾病暴发处置指南.docx
- 安川机器人原理篇.pptx VIP
- 电子技术基础-全套PPT课件.pptx
- 人美版2013六年级美术上册新版教案设计.doc VIP
- 安川电机YRC1000外部轴改造手顺 全部机型 手顺-选项功能-006 中文 2024-10-29.pdf VIP
- GB50461-2008:石油化工静设备安装工程施工质量验收规范.pdf VIP
- YRC1000 CC-Link 通信機能説明書_中文.pdf VIP
- nvidiasmbus邮箱接口smbpbi芯片手册dg 06034 v03.pdf VIP
- 通风机安装施工方案.docx VIP
原创力文档

文档评论(0)