<tfoot id='qbFt9'></tfoot>
    • <bdo id='qbFt9'></bdo><ul id='qbFt9'></ul>
    <i id='qbFt9'><tr id='qbFt9'><dt id='qbFt9'><q id='qbFt9'><span id='qbFt9'><b id='qbFt9'><form id='qbFt9'><ins id='qbFt9'></ins><ul id='qbFt9'></ul><sub id='qbFt9'></sub></form><legend id='qbFt9'></legend><bdo id='qbFt9'><pre id='qbFt9'><center id='qbFt9'></center></pre></bdo></b><th id='qbFt9'></th></span></q></dt></tr></i><div id='qbFt9'><tfoot id='qbFt9'></tfoot><dl id='qbFt9'><fieldset id='qbFt9'></fieldset></dl></div>
    <legend id='qbFt9'><style id='qbFt9'><dir id='qbFt9'><q id='qbFt9'></q></dir></style></legend>

      1. <small id='qbFt9'></small><noframes id='qbFt9'>

        Console.WriteLine("");卡住

        Console.WriteLine(quot;quot;); gets stuck(Console.WriteLine();卡住)

            • <legend id='rQFH4'><style id='rQFH4'><dir id='rQFH4'><q id='rQFH4'></q></dir></style></legend>

              <small id='rQFH4'></small><noframes id='rQFH4'>

                  <bdo id='rQFH4'></bdo><ul id='rQFH4'></ul>
                  <tfoot id='rQFH4'></tfoot>

                • <i id='rQFH4'><tr id='rQFH4'><dt id='rQFH4'><q id='rQFH4'><span id='rQFH4'><b id='rQFH4'><form id='rQFH4'><ins id='rQFH4'></ins><ul id='rQFH4'></ul><sub id='rQFH4'></sub></form><legend id='rQFH4'></legend><bdo id='rQFH4'><pre id='rQFH4'><center id='rQFH4'></center></pre></bdo></b><th id='rQFH4'></th></span></q></dt></tr></i><div id='rQFH4'><tfoot id='rQFH4'></tfoot><dl id='rQFH4'><fieldset id='rQFH4'></fieldset></dl></div>
                    <tbody id='rQFH4'></tbody>
                  本文介绍了Console.WriteLine("");卡住的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  有时当我执行上述语句时,程序会在控制台应用程序中冻结.如果我中断,我将无法移动到下一行.我需要重置缓冲区吗?

                  Sometimes when I execute the above statement, the program freezes in a console application. If I break, I can't move to the next line. Do I need to reset a buffer or something?

                  这是一个在屏幕上显示消息的批处理应用程序.有没有人经历过这个并设法解决它.这似乎是一个新事物.我正在使用 Visual Studio 2017 教授版.

                  It's a batch process application that displays messages to the screen. Has anyone experienced this and managed to resolve it. It seems to be a new thing. I'm using Visual Studio 2017 Prof. edition.

                  WriteLine 停止的函数如下.sMessage 的值为空白".

                  The function where WriteLine stalls is below. The value of sMessage is blank "".

                  static void Display(string sMessage, DisplayColours eColour = DisplayColours.White)
                  {
                      if (eColour == DisplayColours.Yellow)
                          Console.ForegroundColor = ConsoleColor.Yellow;
                      if (eColour == DisplayColours.Blue)
                          Console.ForegroundColor = ConsoleColor.Cyan;
                      if (eColour == DisplayColours.Green)
                          Console.ForegroundColor = ConsoleColor.Green;
                      if (eColour == DisplayColours.Red)
                          Console.ForegroundColor = ConsoleColor.Red;
                      if (eColour == DisplayColours.Magenta)
                          Console.ForegroundColor = ConsoleColor.Magenta;
                      if (oFptr != null)
                      {
                          oFptr.WriteLine(sMessage);
                          oFptr.Flush();
                      }
                      Console.WriteLine(sMessage);
                      Console.ForegroundColor = ConsoleColor.White;
                  }
                  

                  推荐答案

                  可能导致这种情况的一个原因是,如果您单击控制台窗口以开始选择文本,换句话说,第一步从控制台窗口中复制文本.发生这种情况时,对控制台窗口的写入将挂起,直到您返回控制台窗口并按 Enter 删除选择框.

                  One thing that can cause this, is if you click on the console window in such a way that it starts to select text, in other words, the first step in copying text out of the console window. When this happens, a write to the console window will hang until you return to the console window and press Enter to remove the selection box.

                  这篇关于Console.WriteLine("");卡住的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Force JsonConvert.SerializeXmlNode to serialize node value as an Integer or a Boolean(强制 JsonConvert.SerializeXmlNode 将节点值序列化为整数或布尔值)
                  Using JSON to Serialize/Deserialize TimeSpan(使用 JSON 序列化/反序列化 TimeSpan)
                  Could not determine JSON object type for type quot;Classquot;(无法确定类型“Class的 JSON 对象类型.)
                  How to deserialize a JSONP response (preferably with JsonTextReader and not a string)?(如何反序列化 JSONP 响应(最好使用 JsonTextReader 而不是字符串)?)
                  how to de-serialize JSON data in which Timestamp it-self contains fields?(如何反序列化时间戳本身包含字段的JSON数据?)
                  JSON.Net custom contract serialization and Collections(JSON.Net 自定义合约序列化和集合)
                    <tbody id='xeIlT'></tbody>

                      • <legend id='xeIlT'><style id='xeIlT'><dir id='xeIlT'><q id='xeIlT'></q></dir></style></legend>

                          <bdo id='xeIlT'></bdo><ul id='xeIlT'></ul>

                          <small id='xeIlT'></small><noframes id='xeIlT'>

                        • <i id='xeIlT'><tr id='xeIlT'><dt id='xeIlT'><q id='xeIlT'><span id='xeIlT'><b id='xeIlT'><form id='xeIlT'><ins id='xeIlT'></ins><ul id='xeIlT'></ul><sub id='xeIlT'></sub></form><legend id='xeIlT'></legend><bdo id='xeIlT'><pre id='xeIlT'><center id='xeIlT'></center></pre></bdo></b><th id='xeIlT'></th></span></q></dt></tr></i><div id='xeIlT'><tfoot id='xeIlT'></tfoot><dl id='xeIlT'><fieldset id='xeIlT'></fieldset></dl></div>
                          1. <tfoot id='xeIlT'></tfoot>