Hi,
Just a quick question.
If I request the user to enter an integer using a Win32 console (for example), is there a way to prevent any characters other than numbers from being displayed on screen.
Is there a way to disable the entry of specific ASCI characters or something??
I realise there are the clear() and ignore() commands, but these only work after the enter key is pressed. Is there a way to actively stop "wrong" characters being input??
Cheers,
Richard.
Just a quick question.
If I request the user to enter an integer using a Win32 console (for example), is there a way to prevent any characters other than numbers from being displayed on screen.
Is there a way to disable the entry of specific ASCI characters or something??
I realise there are the clear() and ignore() commands, but these only work after the enter key is pressed. Is there a way to actively stop "wrong" characters being input??
Cheers,
Richard.