There are non-standard functions that will do what you want. You could also allow the users to type the comma themselves and just read it into a dummy char variable, although that would make error checking even harder. You could also use non-standard console functions to move the cursor back to where it was after they hit enter. It just depends on how standard you want your code to be versus how much you want the UI to match your vision.