Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef HEADER_H_INCLUDED
- #define HEADER_H_INCLUDED
- class Exception
- {
- protected:
- int code_;
- char* cause_;
- public:
- void display();
- Exception(int code, char* cause);
- };
- template<class own>
- class matrix
- {
- public:
- own& operator()(const int i, const int j);
- matrix();
- matrix(int n, int m);
- matrix(matrix& other);
- friend std::ostream& operator<< (std::ostream& out, const matrix<own>& mtr);
- friend std::istream& operator>> (std::istream& in, matrix<own>& mtr);
- ~matrix();
- int getSize();
- void printMtr();
- private:
- own* point_;
- int n_;
- int m_;
- };
- template<typename T1>
- void swapT1toT2(T1& a, T1& b);
- #endif // HEADER_H_INCLUDED
Add Comment
Please, Sign In to add comment