When I read some values from the user and I need to create an array of the specific size I do it somehow like this:
#include
using namespace
If a and b are the number of rows and number of columns, respectively, you may allocate the array like this:
new unsigned[a * b];
To access the element at row i and column j, do this:
numbers[i * b + j]
However, note that in reality you're almost certainly better off using std::vector for whatever you're trying to do, but you may not have learned about that yet :)