Lefora Free Forum
Loading
254 views

problems with "switch / case of"

Page 1
1–1
rookie - member
7 posts

int a = 2;   
switch (a) {
        case 1:
            <#statements#>
            break;
        case 2,3:
            <#statements#>
            break;
        default:
            break;
    }


Why doesn't "case 2,3:" work? Is there an other way to do it?

Page 1
1–1

Locked Topic


You must be a member to post in this forum

Join Now!