Hi all.
Just a quick question for anyone who may be able to ehelp.
If a user is to enter a choice and i use scanf to read it in.
When that choice is a character that is entered, if the user enters either a character that is not that which is allowed or they enter a number the loop will work fine and it will refresh and get the user to enter it again.
However, i have set up some do while loops when the user is to enter a number and i can set up a do while that will set a range that the number has to be in and if a number outside this is entered the loop works fine but if a character is entered it starts to flicker and freezes up.
Does anyone know how i can overcome this. It is not a huge issue as i have finished my assignments but it would be nice to sort out this last bug! I guess it is some form of discrimination? Any help would be very appreciated.
Thanks everyone :)