#include "PrintUtils.hpp"
#include <vector>
#include <iostream>
Go to the source code of this file.
◆ main()
The main function is the entry point of the program. It demonstrates the usage of the PrintUtils library to print vectors and matrices.
Definition at line 10 of file example.cpp.
11{
12
13 std::vector<int> v = {1, 2, 3, 4, 5};
14 std::cout << "Vector v = \n"
15 << v << std::endl;
16 std::vector<std::vector<int>> vv = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
17 std::cout << "Matrix vv = \n"
18 << vv << std::endl;
20 return 0;
21}
static void TwoDVectorAsTwoDVector(std::vector< std::vector< T > > M, std::string Filename)
Prints a two-dimensional vector as a two-dimensional CSV file.