Website Summary Files Commits Branches @commit @diff @stats
path: root / Week01 / Exercise01 / matrix.h
diff options
context:
space:
mode:
Commitfcf38e62e8160f2c9901bdfd33760afed28beb8d (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-02-22 19:18:46 +0200
Committer
 Syndamia <kamen@syndamia.com>
2026-02-22 19:18:46 +0200
Files838fd5897d88700491a389cdf6837e35da3347ae /Week01/Exercise01/matrix.h
oop-2025-solutions-fcf38e62e8160f2c9901bdfd33760afed28beb8d.tar
oop-2025-solutions-fcf38e62e8160f2c9901bdfd33760afed28beb8d.tar.gz
oop-2025-solutions-fcf38e62e8160f2c9901bdfd33760afed28beb8d.zip
Parentc365ede952f852c6e8feb92fc3a0766186f989f1 (diff)
feat(Week01): Add solutions
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