c# - 出现提示时按“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 ");
解决方案
推荐阅读
- coldfusion - 三元运算符中的变量从不递增
- python - How to add legend to matplolib 3D voxels plot?
- python - python控制台和python终端有什么区别?
- c++ - USE_ZLIB=1:没有这样的文件或目录
- html - 像谷歌地图一样在侧面板旁边对齐地图
- azure - 为 Azure Web App 配置应用程序网关 502 错误
- c# - 将旧正则表达式传递给新的自定义正则表达式以排除特定字符
- r - 使用 igraph 仅在 R 中为社交网络绘制特定日期的节点
- asp.net-core - 'IHostingEnvironment' 已过时
- python - pytest 中有没有办法从夹具中获取参数化测试节点 ID 的列表?