Is there a function in c or c++ where it is like a scanf or cin but instead of echoing the user input it you just record the keystrokes.

What I want to do is get the user input and put it in a...