Hey guys
I am getting an error that says:
All I am trying to do is read the elements into the 2d array. Is it saying I cannot\main.cpp no match for 'operator>>' in 'std::cin >> *((+(((unsigned int)i) * 80u)) + brd)'
use cin to do this?
The below is the part of my proram which is the only part that has the error.
I have marked the erorr line.
Code:void move ( const int brd[][ 20 ] ) { int i, j; int rowValue; int colValue; std::cout << "Enter number of rows to move: "; std::cin >> rowValue; std::cout << "Enter nmmber of columns to move: "; std::cin >> colValue; for ( i = 0; i < rowValue; i++ ) { for ( j = 0; j < colValue; j++ ) std::cout << "Enter value at position [ " << i << "][ " << j << "]: "; std::cin >> brd[ i ][ j ]; // ERROR IS HERE } }