enter key auto :)

what is a code for automatic enter? :) like when you cin>> letter and it automatically gets posted? :)
Something like getch() ?
nop like i press, for example, "a" and it continues doing next function without me pressing "ENTER"key

something like that

getch() just hides "press any key to continue" message ...
Nope :) try this
1
2
3
char x;
x=getch();
cout<<x;
Google "c++ unbuffered input"

getch() should work but it's nonstandard c++.
Last edited on
oh i see ill give it a shot :)
for getch(); to work i presume we need to add #include "conio.h"
yep it worked ;) thank you ;)
Topic archived. No new replies allowed.