By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Mask Password Input

P: 4
I made a program that require user input here is code:
Expand|Select|Wrap|Line Numbers
  1. while(Buffer != 13)
  2.      {
  3.  
  4.                 TempPass2.push_back(Buffer);
  5.                 cout << '*';
  6.                 Buffer = _getch();
  7.      }
  8.  
But I cannot use backspace how can i add backspace to the program?
Thanks!
Sep 17 '10 #1
Share this Question
Share on Google+
1 Reply


100+
P: 1,059
backspace button return 8 try to work with that
Sep 17 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.