0
How can i dynamic allocate memory for a matrix with rows and columns parameters given by the user?
2 ответов
+ 1
#include <vector>
template <typename T>
using matrix = std::vector<std::vector<T>>;
Let the vector class do it for you.
+ 1
thanks a lot !