I am currently coding in C and using switch & getch, like this :
c=getch();
switch(c)
{
case 17:
//something
break;
case 19:
//something else
break;
default: //loop to get the right "case"
break;
}
However, I want to loop my switch in the case of we get into the "default". Does anything exist for that ? Or should I make a "while (x!=10)" -for example- looping my whole switch, and if I go into default, x==10??
Thanks a lot in advance !