How to hide the input? (Mark input with *)

Mar 14, 2019 at 4:06pm
1
2
3
4
  string Password;

  cout << "Type in your password: " << endl;
  getline(cin, Password);


How can i mark the Password in the console with * ?

(Please dont tell me to make it with char ;p, i want to know how to do it with string).
Mar 14, 2019 at 4:27pm
Topic archived. No new replies allowed.