odinzu
11-07-2007, 04:28 AM
I am writing a program and I need to check if the user enters something in or if he just enter it will give a default path for a file.
I tried \0 and \n...It never worked correctly. How would I exactly compare or check if the user has just hit the enter key.
As of now, I the enter key and all it does is goto the next line waiting for the correct input from the user.
I tried \0 and \n...It never worked correctly. How would I exactly compare or check if the user has just hit the enter key.
As of now, I the enter key and all it does is goto the next line waiting for the correct input from the user.