I have a problem with my C++ code (SWITCH)?

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<stdio.h> #include<conio.h> char campo[50],gato[10],teatro[4][8]; int... show more 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<stdio.h>
#include<conio.h>
char campo[50],gato[10],teatro[4][8];
int x=0,tiro,w=1,acertado=0,fallado=0,hundid...
-------------------------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!
3 answers 3