end of line in caser

how to ended the line of caser ?please answer me
@Hogr yousif

Are you meaning a CASE in switch? If so, then

1
2
3
4
5
6
7
CASE 1:
//do whatever if user presses a 1
break;
CASE 2:
//do whatever if user presses a 2
break;
//etc. 


Or..

1
2
3
4
5
6
7
CASE 'A':
//do whatever if user presses the 'A' key
break;
CASE 'B':
//do whatever if user presses the 'B' key
break;
//etc.. 
Except that case is all lowercase, considering the fact that C++ is very sensitive when it comes to your use of case ;)
Whoops. Thanks for the correction, LB
Topic archived. No new replies allowed.