文件名称:Fact
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-29
- 文件大小:
- 4kb
- 下载次数:
- 0次
- 提 供 者:
- 酥**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
定义一个类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
....\.project
....\.settings\org.eclipse.jdt.core.prefs
....\bin\testFact.class
....\...\Fact.class
....\src\Fact.java
....\...\testFact.java
....\.settings
....\bin
....\src
Fact