Mail Archives: djgpp/1998/02/10/20:33:22
Something like,
switch(Num)
{
case 1:
case 10:
case 6:
cout << "Test";
break;
// yadda
}
I think
In message <34e0b800 DOT 2267079 AT newsdesk DOT tidalwave DOT net>, nguyen2 AT tidalwave DOT net_REMOVE (Linh Nguyen) wrote:
> Hi. I use Borland C++ 5 at school, and coded the switch statement as
> follows...
>
> switch(Num)
> {
> case 1, 10, 6: cout << "Test"; break;
> ....... and so on and so forth
> }
>
> but in DJGPP, it won't let me do that, it only lets me have one
> possibility for each case statement, so it would be like this..
>
> case 1: ...
> case 10: ...
> case 6: ...
>
> Is there any way around this? Thanks for any help!
>
>
- Raw text -