I am fairly new to C++.Could anyone help me with this problem?
1 2 3 4 5 6 7 8
|
int place (int toRow, int toCol, char piece.at()) ;
if (!cellEmpty(toRow, toCol)) {
cout << "Space [ " << toRow << ", " << toCol << "] Contains [" << look(toRow, toCol) << "]" << endl;
}
piece = take(row, col);
place(toRow, toCol, piece.at(0), piece.at(1));
row = toRow;
col = toCol;
|
It keeps showing the error that:
error: expected ',' or '...' before '.' token
int place (int toRow, int toCol, char piece.at()) ;
^
prog.cpp:136:46: error: too many arguments to function 'int place(int, int, char)'
place(toRow, toCol, piece.at(0), piece.at(1));
I don't what this means! Any help is appreciated!