int N(10),M(10); // the number of dimension.
int nDefault; // default value for all elements in the matrix
// if you want to get a N*M matrix
vec_int vec_tmp; // temporary 1-dimension "array"
for(int i = 0; i < N; ++i)
{
vec_tmp.assign(M, nDefault);
mtr_int.push_back(vec_tmp);
}
// now you can access the matrix with operator "[]"
// like generay 2-dimension array
// for example
...;
mtr_int[2][3] = 100;