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

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).
Registered users can post here. Sign in or register to post.