文件名称: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.