#include #include using namespace std; const int NUM_ROWS = 10; const int NUM_COLS = 10; void PrintArray(int[][3]); int main () { ifstream inFile; int arrNums[NUM_ROWS][NUM_COLS]; int rows; int cols; inFile.open("arrContent.txt"); if (!inFile) { cout << "ERROR - Input file did not open."; return 1; } for (rows = 0; rows < NUM_ROWS; rows++) { for(cols = 0; cols < NUM_COLS; cols++) { inFile >> arrNums[NUM_ROWS][NUM_COLS]; } } PrintArray(arrNums); return 0; } void PrintArray (int arrayOfNums[][3]) { int rows; int cols; for (rows = 0; rows < NUM_ROWS; rows++) { for (cols = 0; cols < NUM_COLS; cols++) { cout << "arrNums [" << rows << "] [" << cols << "] stores " << arrayOfNums[rows][cols] << endl; } } }