Programming problem!

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!
There is no value in your piece.at(?????????????) initiization
and I don't think that's going to work anyway...

http://www.cplusplus.com/search.do?q=.at
Last edited on
Topic archived. No new replies allowed.