diff options
author | justanothercatgirl <sotov@twistea.su> | 2025-04-17 12:48:23 +0300 |
---|---|---|
committer | justanothercatgirl <sotov@twistea.su> | 2025-04-17 12:48:23 +0300 |
commit | 0bd2ab4d1f9e8fdbf55ed11d61fe2e75720a334a (patch) | |
tree | 59f91bead63e9f68f74dafd73b68491286eabcf7 /libprakpp/tests/matrix.cpp | |
parent | 45f12ba19761024d335407793ffb8d4823b28149 (diff) |
finished 206, 207
Diffstat (limited to 'libprakpp/tests/matrix.cpp')
-rw-r--r-- | libprakpp/tests/matrix.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
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<const char*> 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; +} |