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;
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.