hi,
i have a small problem with my program:
int main(int argc, char *argv[])
{
int ende;
int modus;
short x;
short y;
mkdir("maps");
while(1==1)
{
cls();
//some printf's
char enter=0;
while (enter != '\r' && enter != '\n') { enter = getchar(); }
system("cls");
ende=0;
modus=0;
//some printf's
scanf("%d",&modus);fflush(stdin);
if(modus==1) //singelplayer
{
tttsp();
}
else if(modus==2) //multiplayer:
{
tttmp();
}
else if(modus==3)//Snake
{
snake();
}
else if(modus==4) //snake editor
{
editor();
}
else
{
printf("Kein Gueltiger Modus ausgewählt!\n");
system("PAUSE");
cls();
}
}
system("PAUSE");
return 0;
}
when i want to compile the program, there is the follow error:
expected declaration or statement at end of input
Can someone help me with my problem?