multiple instances of cin

Heya everyone!
I was curious about something...I've created a while loop that handles user input for two numbers...then inside the loop I have another instance where the user is entering a number to enter a switch statement...interestingly, when the user enters the number for the switch, the switch is never executed and in fact the prog makes it so you haveta enter the variable for the switch three times and when you do that...it skips the whole loop body and starts from the beginning of the loop...
Now I was wondering if it's the fact that I have another instance of cin within the while loop that's conflicting with the calls to cin in the while test expression? Any insight into this interesting predicament would help me a lot...if it helps any here's a bit of my while loop:

what the hell...this is SO weird, I added a single cout statement to my first case in the switch and now it works fine...hmmm, and now I took the cout statement and it's working fine now...well,jlou, thanks a lot for the help I think the problem was in my switch statement which you helped me realize...for that I give you a reputation boost :-P Thanks a lot for the help!-Chap