<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"

        error: ‘NULL’ was not declared in this scope(错误:未在此范围内声明“NULL)
          <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++ stl unordered_map implementation, reference validity(C++ stl unordered_map 实现,参考有效性)
                  C++: Is it possible to use a reference as the value in a map?(C++:是否可以使用引用作为映射中的值?)
                  Where ampersand quot;amp;quot; can be put when passing argument by reference?(其中符号“amp;通过引用传递参数时可以放置吗?)
                  Why can a non-const reference parameter be bound to a temporary object?(为什么可以将非常量引用参数绑定到临时对象?)
                  What is a dangling reference?(什么是悬空引用?)
                  C++ reference changes when push_back new element to std::vector(当 push_back 新元素到 std::vector 时,C++ 引用发生变化)
                  <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>
                          <tbody id='KUAFv'></tbody>

                      • <tfoot id='KUAFv'></tfoot>
                      • <small id='KUAFv'></small><noframes id='KUAFv'>