On Sun, Jun 17, 2012 at 8:35 PM, Stephan Beal <[email protected]> wrote:
> Pedantic note: cin.get() will wait for ENTER to be pressed before
> returning, AFAIK. There is no portable way (in C/C++) to grab only the next
> keystroke from the console.
>
But i was in doubt, so i checked...
[stephan@host:~/tmp]$ cat foo.cpp
#include <iostream>
int main(){
std::cin.get();
return 0;
}
[stephan@host:~/tmp]$ gcc -o x foo.cpp -lstdc++
[stephan@host:~/tmp]$ ./x
dsdddssd
it waited for ENTER before continuing.
--
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users