Hey, how do u force a user to enter only letters from the keyboard in an Ansi C console Application? I'm trying to write a small program but it goes crazy when I enter any thing numeric, which I shouldn't do.
while((key=getch())!=ESC)
{
switch(getch()){
//case 1 to 10 do nothing
//case write the characters on the screen
}
}Users browsing this forum: No registered users and 0 guests