Console.WriteLine("按回车退出循环,按任意键从TOP处继续");
   if (Console.ReadKey(true).Key == ConsoleKey.Enter)
  {
      break;
  }else
  {
  goto TOP;
  }        

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

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

转载于:https://www.cnblogs.com/xiaoyu233/p/7850352.html

更多推荐