星辰的零落

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
   Console.WriteLine("按回车退出循环,按任意键从TOP处继续");
   if (Console.ReadKey(true).Key == ConsoleKey.Enter)
  {
      break;
  }else
  {
  goto TOP;
  }        

其中ReadKey()括号中为true则用户的按键不显示在控制台窗体上

posted on 2017-11-17 10:30  星辰的零落  阅读(6008)  评论(0编辑  收藏  举报