Printing Asterisks Horizontally with user input

I want to write a code that takes user input and prints out asterisks horizontally matching with their input. I am clueless where to start. Any help would be great
Basically, get the input of the user, count it, then print out that number of asterisks.
I think he meant as he types the password in, rather than echoing the letter to cout, it prints an asterisk instead.

I've been looking for solutions, it seems getch() is the way to go as it reads the scan code from the keyboard without echoing it to cout.
This sort of thing is platform-specific.
http://www.cplusplus.com/articles/E6vU7k9E/
Topic archived. No new replies allowed.