>To my knowledge with cin you must press enter to assign whatever they typed to a variable.
Correct. Input in standard C++ is line oriented, so to read raw input you need to use a system-dependent or compiler-dependent solution.
This is offers three such solutions, but since you didn't tell us what compiler and operating system you're using, I can't help you any better than that.
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Offline 11,807 posts
since Sep 2004