I
Ian Tuomi
Is it possible to go through multiple cases in one case like this? how?
switch(foo)
{
case 1 or 2:
dosomething(); break; //dosomething if foo is either 1 or 2
case 3:
dosomethingelse(); break; // dosomethingelse if foo is 3
}
--
Ian Tuomi
Jyväskylä, Finland
"Very funny scotty, now beam down my clothes."
GCS d- s+: a--- C++>$ L+>+++$ E- W+ N+ !o>+ w---
!O- !M- t+ !5 !X R+ tv- b++ DI+ !D G e->+++ h!
NOTE: Remove NOSPAM from address
switch(foo)
{
case 1 or 2:
dosomething(); break; //dosomething if foo is either 1 or 2
case 3:
dosomethingelse(); break; // dosomethingelse if foo is 3
}
--
Ian Tuomi
Jyväskylä, Finland
"Very funny scotty, now beam down my clothes."
GCS d- s+: a--- C++>$ L+>+++$ E- W+ N+ !o>+ w---
!O- !M- t+ !5 !X R+ tv- b++ DI+ !D G e->+++ h!
NOTE: Remove NOSPAM from address