You have the idea of the switch/case all wrong. You don't just number the cases with ordinals, such as "case 1:". The case is the value you want to test against, akin to "if (q == switchVariable". Your code won't enter the case block because q is not == 1, nor is it == 2. Remember that I told you the case value has to be a constant. That's why the switch is not as flexible as an if.

Point 2: conio is not a standard library function; it raises issues of portability. Sometimes one has to forego portability. Not in this case. Simply use getchar () to pause. So the user has to hit the enter key? Big hootywahwah, who cares?