I am learning C++ and having a problem with adding numbers in a [10][10] array. It reads the data from a file. I have the array set up and I have to add the numbers diagonally left and right. I have to add prj6[0][0] then prj6[1][1] then[2][2] and so forth. I don't know how to increase through the array.
for(int row = 0; row < NUM_ROW; row++)
{
for(int clm = 0; clm < NUM_CLM; clm++)
out << setw(5) << prj6 [row][clm];
cout << endl;
}
This code gets me to loop through the array.