文件名称:Fact
介绍说明--下载内容来自于网络,使用问题请自行百度
定义一个类Fact表示无符号有理数(分数),成员有分子(num)和分母(den)
构造函数2个
一组get方法
一组set方法
方法:
-比较两个分数的大小,结果为boolen的值
-对分数进行约分(分子分母同时除以最大公约数)
-对两个分数进行通分(先约分)
-两个分数相加,结果为不可约数(先通分,然后再约分)
定义testFact类,创建Fact对象,并调用各个方法-The definition of a class of Fact unsigned rational numbers (fractions), members of the molecules (num) and denominator (den)
Constructor 2
Get method
A group set method
Method:
- Compare the size of the two fractions, the result is the value of the boolen
- About points on the score (the numerator and denominator by dividing the greatest common divisor)
- The common denominator (the first about points on two scores)
- The two scores are added, the result is a the irreducible number (first common denominator, and then about points)
The definition testFact class, create Fact objects and call the various methods
构造函数2个
一组get方法
一组set方法
方法:
-比较两个分数的大小,结果为boolen的值
-对分数进行约分(分子分母同时除以最大公约数)
-对两个分数进行通分(先约分)
-两个分数相加,结果为不可约数(先通分,然后再约分)
定义testFact类,创建Fact对象,并调用各个方法-The definition of a class of Fact unsigned rational numbers (fractions), members of the molecules (num) and denominator (den)
Constructor 2
Get method
A group set method
Method:
- Compare the size of the two fractions, the result is the value of the boolen
- About points on the score (the numerator and denominator by dividing the greatest common divisor)
- The common denominator (the first about points on two scores)
- The two scores are added, the result is a the irreducible number (first common denominator, and then about points)
The definition testFact class, create Fact objects and call the various methods
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Fact/.classpath
Fact/.project
Fact/.settings/org.eclipse.jdt.core.prefs
Fact/bin/testFact.class
Fact/bin/Fact.class
Fact/src/Fact.java
Fact/src/testFact.java
Fact/.settings
Fact/bin
Fact/src
Fact
Fact/.project
Fact/.settings/org.eclipse.jdt.core.prefs
Fact/bin/testFact.class
Fact/bin/Fact.class
Fact/src/Fact.java
Fact/src/testFact.java
Fact/.settings
Fact/bin
Fact/src
Fact
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
