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

        • <bdo id='dgwIz'></bdo><ul id='dgwIz'></ul>

        <tfoot id='dgwIz'></tfoot>

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

        错误:未在此范围内声明“NULL"

        时间:2023-12-02
          <bdo id='1zvuq'></bdo><ul id='1zvuq'></ul>
            <tbody id='1zvuq'></tbody>

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

                  <small id='1zvuq'></small><noframes id='1zvuq'>

                2. 本文介绍了错误:未在此范围内声明“NULL"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 gcc 4.3 上编译 C++ 时收到此消息

                  I get this message when compiling C++ on gcc 4.3

                  error: ‘NULL’ was not declared in this scope
                  

                  它出现又消失,我不知道为什么.为什么?

                  It appears and disappears and I don't know why. Why?

                  谢谢.

                  推荐答案

                  NULL 不是关键字.它是一些标准头文件中定义的标识符.你可以包括

                  NULL is not a keyword. It's an identifier defined in some standard headers. You can include

                  #include <cstddef>
                  

                  将其纳入范围,包括一些其他基础知识,例如 std::size_t.

                  To have it in scope, including some other basics, like std::size_t.

                  这篇关于错误:未在此范围内声明“NULL"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在 C 或 C++ 中,我应该根据 NULL/nullptr 检查指针参数吗? 下一篇:C++ 或库中是否有空 std::ostream 实现?

                  相关文章

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

                    <legend id='KUAFv'><style id='KUAFv'><dir id='KUAFv'><q id='KUAFv'></q></dir></style></legend>

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

                    1. <tfoot id='KUAFv'></tfoot>
                    2. <small id='KUAFv'></small><noframes id='KUAFv'>