Some compilers don't like the inverted commas
shown in that example. If you have a problem with it
try:
switch(value)
{
case 1:
dothis();
dothat();
break;
case 2:
dotheother();
break;
default:
donothing();
}
remember to put in the break command or
it will run on from case one to case two etc!
Nokomis
Georges
|