stuck on two-dimensional array program

I am supposed to create a program that displays the contents of a two-dimensional array, column by column and row by row. I have a good idea but I am stuck. I also keep getting an error on line 19 that says must have object-to-pointer-type. I have no clue what this means. Help would be greatly appreciated.
[code]

#include <iostream>
#include <iomanip>
using namespace std;

int main()
{
int row [4][3] = {0};
int column = 0;
int numbers = 0;

while (column < 5)
{
for (int row = 0; row < 6; row += 1)
{
cout << "Number: ";
cin >> numbers[row][column];
}
column += 1;
}
}
The code has the name of the 2d array as row...
int row [4][3] = {0};

but the input is trying to go into numbers, which is a single int variable.
cin >> numbers[row][column]

I'd give the 2d array a name other than row, because the compiler won't like this either.

cin >> row[row][column];
Thank you, that fixed the error. However now when i run the program it just has me entering numbers until I exit the program or enter a number to big. Should I include an "endl;" after the cin or am i missing something?
The 2d array is defined as 4 rows x 3 columns. Check how many times the code is running in the loops - right now the row starts at 0 and goes to 5, the column starts at 0 and goes to 4.
Topic archived. No new replies allowed.