looking for a quick fix
Posted on 1998-11-22
In my program, I prompt the user to enter a number. I use the gotoxy statement to position the cursor but the problem being, is that if the user presses enter before the number is entered then the cursor will do a carriage return and when the user types a number and presses enter it is on the left hand side of the screen.
Is there a way to prevent the user from pressing enter before a number is entered? Please can I have the answer in the least amount of code possible.