int my_md_array[10][10];
for (size_t i = 0; i != 10; ++i) {
for (size_t j = 0; j != 10; ++j) {
my_md_array[i][j] = i;
}
}
for (size_t i = 0; i != 10; ++i) {
for (size_t j = 0; j != 10; ++j) {
cout << my_md_array[i][j] << ' ';
}
cout << endl;
}
I'm almost certain there's a way to use a range-for to print it easier, but I forget how, so if someone wants to throw that up, I wouldn't be too awful mad.