Jupiter_Crafter

bruch.h

Apr 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #ifndef BRUCH_H
  2. #define BRUCH_H
  3.  
  4. #include <iostream>
  5.  
  6. class bruch{
  7.  
  8. public:
  9.     bruch(int, int);
  10.     bruch();
  11.  
  12.     bruch kuerzen();
  13.  
  14.     bruch operator*(bruch);
  15.     bruch operator+(const bruch&);
  16.     bruch operator/(const bruch&);
  17.     bruch operator-(const bruch&);
  18.     friend std::ostream& operator <<(std::ostream&, const bruch&);
  19.  
  20. private:
  21.     int zaehler;
  22.     int nenner;
  23.  
  24.  
  25.  
  26.  
  27.  
  28. };
  29.  
  30.  
  31.  
  32.  
  33. #endif // BRUCH_H
Add Comment
Please, Sign In to add comment