From 0bd2ab4d1f9e8fdbf55ed11d61fe2e75720a334a Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Thu, 17 Apr 2025 12:48:23 +0300 Subject: finished 206, 207 --- libprakpp/tests/matrix.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libprakpp/tests/matrix.cpp (limited to 'libprakpp/tests') diff --git a/libprakpp/tests/matrix.cpp b/libprakpp/tests/matrix.cpp new file mode 100644 index 0000000..dffecef --- /dev/null +++ b/libprakpp/tests/matrix.cpp @@ -0,0 +1,14 @@ +#include "../include/prakmatrix.hpp" + +int main() { + using namespace prak; + prak::matrix a(2, 3, { + "раз", "два", "три", + "4", "5s", "6" + }); + std::cout << "\x1b[0;91m" << a; + a.add_row(1, {"6", "6", "6"}); + std::cout << "\x1b[0;92m" << a; + a.add_column(0, {"9", "9", "9"}); + std::cout << "\x1b[0;93m" << a; +} -- cgit v1.2.3-70-g09d2