Guest User

header

a guest
May 13th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.72 KB | None | 0 0
  1. #ifndef HEADER_H_INCLUDED
  2. #define HEADER_H_INCLUDED
  3.  
  4. class Exception
  5. {
  6. protected:
  7.     int code_;
  8.     char* cause_;
  9.  
  10. public:
  11.     void display();
  12.     Exception(int code, char* cause);
  13. };
  14.  
  15. template<class own>
  16. class matrix
  17. {
  18. public:
  19.     own& operator()(const int i, const int j);
  20.  
  21.     matrix();
  22.     matrix(int n, int m);
  23.     matrix(matrix& other);
  24.     friend std::ostream& operator<< (std::ostream& out, const matrix<own>& mtr);
  25.     friend std::istream& operator>> (std::istream& in, matrix<own>& mtr);
  26.  
  27.     ~matrix();
  28.  
  29.     int getSize();
  30.     void printMtr();
  31.  
  32. private:
  33.     own* point_;
  34.     int n_;
  35.     int m_;
  36. };
  37.  
  38. template<typename T1>
  39. void swapT1toT2(T1& a, T1& b);
  40.  
  41.  
  42. #endif // HEADER_H_INCLUDED
Add Comment
Please, Sign In to add comment