|
-
December 10th, 2002, 06:40 PM
#1
Input string problems - urgent !!!
I have to ask the user to enter a value which he could leave empty if he wishes to.
If I use cin, it is required that he enter something at least
getch() - when he uses backspace, the character is not deleted
getline - requires him to press enter twice
scanf - requires him to enter something at least
gets - sometimes the program skips the code.
could somebody help me out with this,
Shilpi
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|