Infinite Loop problem.

So. I have this small project for a school class. We are writing a simple driving quiz type program using if statements and switch statements and loops.

I initially tested this with the "green_option", but when I added the "amber_option" and "red_option" to the mix it doesn't work as intended.

The green option is working as intended, but when I answer the amber_option or the red_option, ANY input puts the program in to an infinite loop.

I have been looking and looking, but I cannot find where it is going wrong.

here is the code: http://pastebin.com/d17eDcU0

Anyone have any ideas?
thanks.
doh. Stupid mistake on my part. Forgot to fix the data types for the vars where I declared them. Was trying to use int for char comparisons. /oops
Topic archived. No new replies allowed.