Advertisement
Smudla

cpp_CV1_H

Oct 8th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #pragma once
  2. #ifndef MATRIX_H
  3. #define MATRIX_H
  4.  
  5. #include <iostream>
  6. #include <time.h>
  7.  
  8. typedef size_t mySize_T;
  9. typedef void(*func_t)(int &arg);             // pointer to function with  int reference arg and void return
  10.  
  11. class Matrix
  12. {
  13.  
  14.     mySize_T** matrix;
  15.     mySize_T _colCount;
  16.     mySize_T _rowCount;
  17.  
  18. public:
  19.     Matrix(mySize_T rowCount,mySize_T colCount);
  20.     ~Matrix();
  21.     int sumUpAllValues();
  22.     int findMaxVallue();
  23.     int findMinVallue();
  24.     void executeOverAllElements(func_t ptr);
  25.     //std::ostream& operator<<(const Matrix& matrix);
  26. };
  27.  
  28. void swapByReference(int& pa, int& pb);
  29.  
  30. #endif Matrix_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement