"Chris Schumacher" <ke*****@hotmail.com> wrote...
Is there a way to set the delimiter to the "enter" key? I've tried the
ASCII values for carriage return, line feed, form feed, and even null
but it doesn't work.
There is no such thing in C++ as <<"enter" key>>, so, no it is not
possible without going to some kind of platform-specific functionality.
If you explain what problem you're trying to solve, and post the code
that you think doesn't work, perhaps we'd be able to recommend some
solution.
Just a hunch: there is a version of the standard library out there in
which in order to get 'getline' to return you have to press "Enter"
twice. All you need is to find a better version of the standard
library, I guess.
Victor