How To Store data from the user in my variables by Immediate presses from the keyboard in C++ and C#(without pressing enter) -


I do not know if this one can already answer the question, if I want to do a touch-typing program I should be key-sensitive, I mean, every time I press a key, it is compared with the text that I am writing.

Now I can not do anything like: cin & gt; & Gt; something; Or console.readline (some); This will not work until I enter which I do not want ..

I have C ++ & amp; Amp & amp;

For C #: For C #: For C #:

Try to use the console. Readkey , which "receives the next character or function key that the user presses."

You can see the msdn sample:



Comments