Problems with scanf and gets
Posted on 2004-08-26
I am working on a project, and I am having a bit of a problem...
More specifically, I need a way that the end user can be entering data into a field, and if a character is entered, then it just stores it to an int (have this working just fine),
and when they do not enter any characters and press the enter key, then it will assign a variable 'exit_value' to 1
the problem that I am currently having is that when the end user presses enter and there is nothing on the line, it prints a new line, rather than taking the enter key.
Any help on this will be greatly appreciated...