Hey i have a little problem with this code, when i compile with visual c++ it displays error C2046, what might be the problem?
Thanks!
#include
#include
char campo[50],gato[10],teatro[4][8];
int x=0,tiro,w=1,acertado=0,fallado=0,hundido=0,bol,ctr[8],num[20],y,z,j,menu=0;
-------------------------declaring functions------------------
main()
{ do
{
scanf("%d",&menu);
switch(menu);
{ case 1:
{ submarino();
break;
}
case 2:
{ juego_gato();
break;
}
case 3:
{ venta_teatro();
break;
}
case 4:
{ sort();
break;
}
case 5: return 0;
case 5: return 0;
default: printf("Opcion invalida, vuelve a intentar.");
}
}
while(menu!=500);
Any help will be apreciated! Thanks!
2007-05-14
11:28:22
·
3 answers
·
asked by
Anonymous