Hi
If there is while loop to ask user to input a integer at a time, how to prevent from input by and char or string or any decimal numbers? and how to quit the while loop if user only push the "enter" key without any input?
Thanks.
This is a discussion on prevent char input from int within the C Programming forums, part of the General Programming Boards category; Hi If there is while loop to ask user to input a integer at a time, how to prevent from ...
Hi
If there is while loop to ask user to input a integer at a time, how to prevent from input by and char or string or any decimal numbers? and how to quit the while loop if user only push the "enter" key without any input?
Thanks.
Don't laugh at me,I am just a SuperNewbie.
Well, you could always read the FAQ.
Quzah.
Hope is the first step on the road to disappointment.