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

  • <tfoot id='FhMJM'></tfoot>

      <bdo id='FhMJM'></bdo><ul id='FhMJM'></ul>
  • <legend id='FhMJM'><style id='FhMJM'><dir id='FhMJM'><q id='FhMJM'></q></dir></style></legend>

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

        “error:stray 'XXX' in C++ program":为什么会发生这种情况?

        时间:2023-07-01
        <tfoot id='42MQZ'></tfoot>
        • <bdo id='42MQZ'></bdo><ul id='42MQZ'></ul>
              <tbody id='42MQZ'></tbody>

          • <small id='42MQZ'></small><noframes id='42MQZ'>

              <legend id='42MQZ'><style id='42MQZ'><dir id='42MQZ'><q id='42MQZ'></q></dir></style></legend>

                <i id='42MQZ'><tr id='42MQZ'><dt id='42MQZ'><q id='42MQZ'><span id='42MQZ'><b id='42MQZ'><form id='42MQZ'><ins id='42MQZ'></ins><ul id='42MQZ'></ul><sub id='42MQZ'></sub></form><legend id='42MQZ'></legend><bdo id='42MQZ'><pre id='42MQZ'><center id='42MQZ'></center></pre></bdo></b><th id='42MQZ'></th></span></q></dt></tr></i><div id='42MQZ'><tfoot id='42MQZ'></tfoot><dl id='42MQZ'><fieldset id='42MQZ'></fieldset></dl></div>
                  本文介绍了“error:stray 'XXX' in C++ program":为什么会发生这种情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在用 C++ 编写一个小程序,遇到一个奇怪的错误:

                  I'm writing a little program in C++, and come across a strange error:

                  src/Makefile/Tool.cpp:42:3: error: stray ‘302’ in program
                  src/Makefile/Tool.cpp:42:3: error: stray ‘240’ in program
                  

                  我正在用 Vim 编写这个程序,对应的行(显示隐藏字符)是:

                  I'm writing this program in Vim and the corresponding line (showing hidden characters) is:

                  >--->---std::vector<std::string> { "--debug" }$
                  

                  这个问题不是关于解决这个错误,因为我只需要复制回该行,错误原因就会消失.

                  This question is not about resolving this error, as I just have to copy back the line and the error-cause disappear.

                  好像是一些字符在激活所有相关选项后被 Vim 隐藏了导致的错误!

                  It seems that the error is caused by some characters even hidden by Vim after activating all relative options!

                  问题是可能导致这些错误的原因.

                  The question is about what could have caused those errors.

                  推荐答案

                  "302240"U+00A0 NO-BREAK SPACE 的 UTF-8.Vim 通常不会将其突出显示为任何特殊的东西,因此即使您启用了 'list' 模式,也有可能有人偷偷溜进来.

                  "302240" is UTF-8 for U+00A0 NO-BREAK SPACE. Vim won’t normally highlight it as anything special, so it’s possible for one to sneak in even if you have 'list' mode enabled.

                  您可以通过以下方式突出显示它们:

                  You can highlight them with:

                  :set listchars+=nbsp:.
                  

                  或者任何你喜欢的角色.

                  or any character you like.

                  这篇关于“error:stray 'XXX' in C++ program":为什么会发生这种情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何重用字符串流 下一篇:如何在 Qt 中更改 QCheckBox 文本标签颜色?

                  相关文章

                  <tfoot id='K24rO'></tfoot>

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

                    • <bdo id='K24rO'></bdo><ul id='K24rO'></ul>
                    <legend id='K24rO'><style id='K24rO'><dir id='K24rO'><q id='K24rO'></q></dir></style></legend>

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