project12.cpp: In function ‘int main()’:
project12.cpp:220:23: error: expected primary-expression before ‘int’
displayBoard(int board[9][9])
^~~
project12.cpp:229:21: error: expected primary-expression before ‘int’
writeBoard(int board[9][9], char newFile[256])
^~~
project12.cpp:229:38: error: expected primary-expression before ‘char’
writeBoard(int board[9][9], char newFile[256])
int main()
{
char filename[256];
int board[9][9];
getFilename(&filename[256]);
char command = interact();
char newFile[256];
switch (toupper((int) command))
{
case '?':
displayOptions();
break;
case 'D':
displayBoard(int board[9][9])
break;
case 'E':
editSquare();
break;
case 'S':
getCoordinates();
break;
case 'Q':
writeBoard(int board[9][9], char newFile[256])
break;
default:
cout << "Error: Invalid command\n";
break;
}
return 0;
}
Does anyone know why it's not compiling?
Also, some of your statements are missing semicolons at the end.