diff options
Diffstat (limited to 'libprakpp/tests')
-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; +} |