*(C++ define Rational Class)
L9_A
有理數的建構子
(Constructors of Rational numbers)
顯示有理數內容 : show()
(Show Rational value : show())
有理數約分 : simplify()、gcd()
( Simplify rational numbers : simplify()、gcd() )
L9_B
有理數的Copy constructor
(Copy constructor for Rational numbers)
有理數的Copy assignment
(Copy assignment for Rational numbers)
有理數的運算子 : +=、++
(Operator for Rational numbers : +=、++)
L9_C
有理數的運算子 : +、-、==、<
(Operator for Rational numbers : +、-、==、<)
L9_D
有理數陣列
(Vector of rational numbers)
有理數排序
(Sorting rational numbers)
Ostream輸出運算子<<
(Operator << for ostream cout)
有理數轉浮點數