Trying to pass a multi-dimensional array but it won't work. Any suggestions?
const int SIZE = 3;
int row;
int col;
int PBUF[3][3];
int getPBUF(int *PBUF);
int main()
{
int PBUF[SIZE];
getPBUF(PBUF);
}
int getPBUF(int *PBUF)
{
cout << "Enter 3 rows of 3 integers each:\n";
for (row = 0; row < SIZE; row++)
for (col = 0; col < SIZE; col++)
cin >> PBUF[row][col]; //this is where "error C2109: subscript requires array or pointer type"
}