Hello
I have no idea what does this error message means.
the error message is related to the switch statement in function paintGame.
It is not the complete code I just put the codes that might help to understand it.
any suggestion would be appreciated.
Thanks
Code:#define STORAGE ('+') //store area int main() { void paintGame( char g[][ SIZEX+1], string& mess,string& name,int a[], int dx,int dy); char grid[ SIZEY+1][ SIZEX+1]; //grid for display string message = "LET'S START..."; int ap[2]; int dx( 0), dy( 0); paintGame( grid, message,name,ap, dx, dy); //display game info, modified grid & messages }Code:void paintGame(char gd[][ SIZEX+1], string& mess, string& name,int a[], int dx,int dy) { //display game title, messages, maze, mouse & apples on screen void paintGrid( const char g[][ SIZEX+1]); int calculateStoringScore(); switch (gd[a[0]-dy][a[1]-dx]) { case STORAGE: Gotoxy(40, 10); cout << "NUMBER OF APPLES IN STORE:" << calculateStoringScore(); break; } }
Code:int calculateStoringScore() { int count=0; for (count=0;count<6;count++) { } return count; }



LinkBack URL
About LinkBacks



CornedBee