Нема описа

1234567891011121314151617181920212223242526272829
  1. #include <iostream>
  2. #include "Rational.h"
  3. ////
  4. using namespace std;
  5. int main() {
  6. Rational a(1,2);
  7. Rational b(8,4);
  8. Rational c;
  9. c = a + b;
  10. c = a * b;
  11. // funcionara????
  12. cout << a + 0.5 << endl;
  13. cout << 0.5 + a << endl;
  14. cout << 0.5 + a + 1.3 << endl;
  15. (a + b + c).display();
  16. c.display();
  17. cout << boolalpha << (a > b) << endl;
  18. return 0;
  19. }