首页 > 解决方案 > 出现提示时按“alt-x”关闭

问题描述

我需要一点帮助。当用户按下“alt-x”或任何键的组合时,我试图让程序关闭或重新启动。任何事情都有帮助;谢谢。

Console.WriteLine("Your User Name is " + userName);
Console.WriteLine("");

Console.WriteLine("And Your Password is " + password);
Console.WriteLine("");

Console.WriteLine("");
Console.WriteLine("Are You Sure This Is Correct? Press 'alt-x' To Go Back or 'c' To Continue ");

标签: c#

解决方案


推荐阅读