Website Summary Files Commits Branches @commit @diff @stats
path: root / Week01 / Exercise01 / matrix.h
blob: 334fab0bf7293f594701120eedc94621615244ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#ifndef _MATRIX
#define _MATRIX

// Създава нова динамично-заделена матрица
int** newMatrix(unsigned rows, unsigned cols);
// Изтрива динамично-заделена матрица
void deleteMatrix(int**& matrix, unsigned rows); // Запишете nullptr в matrix!
// Връща сумата на всички елементи в матрицата
int sumMatrix(const int** matrix, unsigned rows, unsigned cols);

#endif