登录
首页 » Java » complex

complex

于 2019-04-13 发布
0 299
下载积分: 1 下载次数: 1

代码说明:

说明:  编写一个复数类,可以进行复数加法和减法运算。编写一个包含main方法的类(应用程序)测试该复数类。要求该复数类至少包含一个无参的构造方法和一个带参的构造方法;数据成员包括复数的实部和虚部,为double类型;包括两个方法,分别实现复数的加法和减法运算。(Write a complex class, which can add and subtract complex numbers. Write a class (application) containing the main method to test the complex class. The complex class is required to include at least one parametric construction method and one parametric construction method; the data members include the real and imaginary parts of the complex, which are of double type; and two methods are included to realize the addition and subtraction operations of the complex respectively.)

文件列表:

1.txt, 1162 , 2019-04-13
complex.txt, 1162 , 2019-04-13
新建文件夹, 0 , 2019-04-13

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • snmp_demo
    多线程局域网内snmp和在线设备发现拓扑图(Snmp and device discovery in a multithreaded LAN topology)
    2021-03-14 14:49:23下载
    积分:1
  • spring03-2
    说明:  开发示例,一段小程序,spring config配置文件,设置相关property(faDevelop an example, a small program, spring config configuration file, set related properties)
    2019-02-19 11:38:45下载
    积分:1
  • elasticsearch-5.5.2
    强大的搜索引擎,目前最流行的全文搜索引擎,分享给大家一起学习,共同进步。(The powerful search engine, the most popular full text search engine, is sharing for everyone to learn together and make progress together.)
    2018-03-24 13:34:56下载
    积分:1
  • Publisher_Manager
    一套基于数据库开发的个人出版物管理系统, 使用Hibernate来进行持久化, 数据库连接选用MySQL, 使用java 和 ant来进行连接。 使用JUnit进行测试。 包含源代码、需求分析、文档和测试代码。(A set of publications based on database management systems developed by individuals, using Hibernate to carry out persistence, database connection use MySQL, the use of java, and ant to make a connection. The use of JUnit for testing. Contains the source code, requirements analysis, documentation and test code.)
    2009-11-23 16:51:54下载
    积分:1
  • 2333
    本文将用一系列易懂的语言和例子解释Java的网络Socket支持。(This article will use a series of easy-to-understand language and examples to explain the network Socket support Java.)
    2009-06-19 04:14:15下载
    积分:1
  • PlaneGame0.9
    学习java基础的小游戏,简单地写出java实现双缓冲技术,使物体动起来的代码(Learn the basics of Java games, simply write out the Java implementation of double buffering technology, so that objects move up the code)
    2018-08-19 09:59:36下载
    积分:1
  • ClassMemeberPriviledge
    实现一个程序,对用户输入的类权限、成员权限、以及使用该类对象的环境与这个类的关系,判断这个环境中能不能访问这个类的这个成员。 4. 背景知识介绍:对类成员的访问权限由3个方面决定:(1)类的访问权限(public或default),(2)成员变量的访问权限(public, protected, default或private),以及环境与类的相互关系(同类SameClass,同包不同类SamePackageNoteSameClass,不同包但为子类OtherPackageSubClass,不同包非子类OtherPackageNotSubClass)。例如,如果一个类A是public的,它的一个成员变量x是protected的,则这个成员变量的访问权限是default的,试图访问这个类的一个运行环境与A的关系是OtherPackageSubClass,则这个环境中能够访问变量x。(Implement a program, the relationship between the classes of permissions, user input member permissions, as well as the environment of use of such objects of this class, it is judged in this environment can not access this members of this class. 4. Background knowledge: the access rights of the class members decided by three aspects: (1) access rights (public or default), (2) the member variable access rights (public, protected, default or private), as well as environmental and the relationship of the class (of similar SameClass, same package different classes SamePackageNoteSameClass, different packages, but for subclass OtherPackageSubClass, different package non-subclass OtherPackageNotSubClass). For example, if a class A is public, it s a member variable x is protected, the access rights of the member variables is default, tries to access a runtime environment for this class A relationship is OtherPackageSubClass this environment be able to access the variable x.)
    2013-04-01 20:00:25下载
    积分:1
  • threshold
    A java application - processing which can be downloaded free from processing.org Here it uses a free library - OpenCV - made by intel. .. to convert all the pixels in an image - in fact in a movie - a capture from the webcam. If the color of a pixel is "higher" comparing to a threshold it turns black - otherwise it becomes white.(A java application- processing which can be downloaded free from processing.org Here it uses a free library- OpenCV- made by intel. .. to convert all the pixels in an image- in fact in a movie- a capture from the webcam. If the color of a pixel is "higher" comparing to a threshold it turns black- otherwise it becomes white.)
    2009-05-12 05:52:05下载
    积分:1
  • UdpSendFile
    实现传输层UDP的功能,进行文件的发送等功能的实现(UDP transport layer, file send and other functions to achieve)
    2013-04-30 19:21:41下载
    积分:1
  • SumCode
    测试函数行数,计算每个合格的java文本的函数行数(sum code)
    2012-05-06 09:59:57下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载