Fraction.h 371 B

12345678910111213141516171819202122
  1. #include "../Chain/Chain.h"
  2. #include "../Rational/Rational.h"
  3. #include <iostream>
  4. class Fraction
  5. {
  6. public:
  7. Chain<int> layers;
  8. Fraction(Rational r);
  9. Fraction(double r);
  10. operator Rational();
  11. void show();
  12. friend std::ostream& operator <<(std::ostream& out, Fraction& f);
  13. protected:
  14. void Fractain(long long num, long long denum);
  15. };