cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Printing Asterisks Horizontally with use
Printing Asterisks Horizontally with user input
Oct 1, 2014 at 12:45pm UTC
bgold12
(21)
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
Oct 1, 2014 at 2:31pm UTC
crimsonzero2
(213)
Basically, get the input of the user, count it, then print out that number of asterisks.
Oct 1, 2014 at 2:49pm UTC
megatron 0
(471)
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.
Oct 1, 2014 at 2:59pm UTC
booradley60
(896)
This sort of thing is platform-specific.
http://www.cplusplus.com/articles/E6vU7k9E/
Topic archived. No new replies allowed.