Suggestion: do your own work, making sure that your program functions correctly (according to the assignment, no more and no less), and avoid all the pretty stuff. I would also have a comment in there with the echo function to explain why that is all you need.
Ah. Well, the SetConsoleMode() function will also allow you to set the input mode to unbuffered input, so that every time the user presses a key it is immediately available as input.
The method is to get the user's input, and saving it to string, writing '*'s to the screen. You'll need to handle '\b' (backspace) specially. The enter key is '\r'.