-
One Character
Is there anyway that when I ask for a y or n response that it will only allow the user to enter 1 character? I tried var=getchar(); and that didn't do it. It still will only look at the first character but I would like the user to type but 1 character.
Thank you!
-
If you keep the cursor in the same spot it will apear as if they can only type one character. To move the cursor just
Code:
SetCursorPos(int x,int y);
-
use var=getch() if you can... it just grabs the first char the user enters and moves along...
-
better answer already given. deleted mine.