文件名称:ks00
介绍说明--下载内容均来自于网络,请自行研究使用
分数是两个整数的比,通常表示为 (或b/a)的形式,其中b称为分子,a称为分母,分母不能为0。分数在计算机中以整数或浮点数(有限小数)的形式表示,大多数情况下都是近似表示,具有较大的误差,例如 ,在计算机中用整数表示为0,用浮点数表示为0.333333。本实例就是要设计一个Fraction (分数) 类类型,该类型的对象可以像基本类型数据一样进行运算,结果仍为分数,运算包括四则运算,关系运算,及求一元一次分式方程的解,输入输出要求按分数方式进行。-Score is the ratio of two integers, usually expressed as a (or b/a) form, in which b is called the molecular, a known as the denominator, the denominator can not be 0. Score in the computer to an integer or floating-point numbers (finite decimal) form that the majority of cases are similar to that with a larger error, for example, in the computer using an integer that is 0, using floating-point numbers expressed as 0.333333. This example is to design a Fraction (Score) class type, the type of object can be the same as the basic types of data for computation, the results still scores, including four computing computing, relational operators, and for a dollar a分式方程solution, type Output requested by Score manner.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ks00.cpp