On Nov 3, 3:33*am, Paul N <gw7...@aol.com> wrote:
> If I'm within a switch, then saying "case 10:" creates a sort of
> label. Is it possible to jump directly to one of these, eg "goto case
> 12;"? I realise this can be done by adding a "normal" label next to
> the "case" label, and that it might be possible to arrange a similar
> thing by cunning use of fall-through or by changing the variable and
> executing the switch again, but is there a neat syntax to jump to one
> of the other cases?
>
> Thanks.
> Paul.
A C++ program may be containing more than one switch construct. And
there is a posiblity to find statements such as 'case 1:' in more than
one switch constructs. Hence it if at all this feature was there, it
would have been ambiguous for the compiler.
I don't see a point in considering a `case #n' as a `label'; just
because it terminates with a colon?
In short I would reply your last question with No.
|