This site has a tutorial on that subject here: Switch Case in C and C++ - Cprogramming.com. Beyond that you definitely need to actually ask us a question, post your code, and tell us specifically what problems you're having. You might also want a more descriptive subject: every post in this board is related to C programming