View Single Post
Old May 8th, 2006, 10:23 AM   #7
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Looks alright. A switch-case block doesn't work like that though.
switch (addup)
{
    case 'a':
    case 'e':
    case 'i':
    case 'o':
    case 'u':
        // do stuff
        break;
    
    case '0':
    case '1':
    [...]
    case '9':
        // do other stuff
        break;
    
    default:
        // nothing useful happened - do other stuff
}
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote