Website Summary Files Commits Branches @commit @diff @stats
path: root / Week01 / Exercise01 / matrix.h
diff options
context:
space:
mode:
1 files changed, 11 insertions, 0 deletions
-rw-r--r--Week01/Exercise01/matrix.h11
diff --git a/Week01/Exercise01/matrix.h b/Week01/Exercise01/matrix.h
new file mode 100644
index 0000000..334fab0
--- /dev/null
+++ b/Week01/Exercise01/matrix.h
@@ -0,0 +1,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