好的,我是C#的新手,但已经学到了一些。但我有一个问题,如何将在控制台输入的字符替换为“*”或完全隐藏它们?
var pw = "eric123";
Console.WriteLine("Password: ");
var value = Console.ReadLine();
if (value == pw)
{
Console.WriteLine("Permitted, Play online? (Y/N)?");
var getGameOnlineStatus = Console.ReadLine();
//Rest Of the Code is just for me :)
希望能得到任何帮助!