Hi I need help on limiting input. That is to only allow the user to enter 1 char. I'm doing a program that has a menu, and that i would want to allow the user to only enter 1 digit and nothing more.
Choice -> 1 (expected to see only 1 if the users enter "1bc" it still only shows 1 unless the user enter 2* or 3 and so forth.
so we won't see
Choice -> 1a
Choice -> 11
Choice -> bb
Enter is required to proceed which is why i din use getch() after that using isdigit to double check.
Thanks for any help that can be rendered.