Could someone possibly take a look at this?
Code:
#include <iostream>
using namespace std;
// Prototype for function displayinfo
void displayInfo(int info [3] [3]);
int main()
{
int info[3][3];
displayInfo(info);
return 0;
}
// Function displayinfo
void displayInfo(int info [3] [3])
{
for (int row = 0; row < 3; row++)
cout << "Row " << row+1 << ": " << endl;
for (int col = 0; col < 3; col++)
{
cout << info[row][col] << " ";
}
cout << "*** ";
}
can someone tell me why the display of my cout statements are lining up with my rows?