0

so I am new to C++ and was wondering how to hide a password entry in a console application, this is the current script but everything i lookup never works.

string password;
cout << "Password: "; 
cin >> password; 

so instead of Password: MyPassword it would be Password: **********

0 Answers0