Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #ifndef MATRIX_H
- #define MATRIX_H
- #include <iostream>
- #include <time.h>
- typedef size_t mySize_T;
- typedef void(*func_t)(int &arg); // pointer to function with int reference arg and void return
- class Matrix
- {
- mySize_T** matrix;
- mySize_T _colCount;
- mySize_T _rowCount;
- public:
- Matrix(mySize_T rowCount,mySize_T colCount);
- ~Matrix();
- int sumUpAllValues();
- int findMaxVallue();
- int findMinVallue();
- void executeOverAllElements(func_t ptr);
- //std::ostream& operator<<(const Matrix& matrix);
- };
- void swapByReference(int& pa, int& pb);
- #endif Matrix_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement