well, like i said, i should have the book here in less than a week. but til then, i think i see the problem with my code, or at least i hope so.
it looks like i'm scanning for text, but shouldn't i be scanning for an 'int' in my switch statement?
The variable text is an int. You can check for anything in a switch statement. I just used an int in my example. You could have used a char if you wanted.
Your switch statement looks fine except for the lack of breaks. If you want it to keep looping then you need to put a loop in. The switch statement is a control statement, directing the flow of code depending on some input or variable. It is not meant to keep looping otherwise it would be called a loop.