1. <legend id='kJpEA'><style id='kJpEA'><dir id='kJpEA'><q id='kJpEA'></q></dir></style></legend>
      • <bdo id='kJpEA'></bdo><ul id='kJpEA'></ul>

    2. <tfoot id='kJpEA'></tfoot>

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

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

      什么头文件在 C++ 中定义了 NULL?

      What header defines NULL in C++?(什么头文件在 C++ 中定义了 NULL?)
      <tfoot id='q0Uih'></tfoot>
      • <legend id='q0Uih'><style id='q0Uih'><dir id='q0Uih'><q id='q0Uih'></q></dir></style></legend>

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

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

              1. 本文介绍了什么头文件在 C++ 中定义了 NULL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                根据C++ 入门,<cstdlib> 头定义了 NULL.cpluspplus 说它是在 .

                According to C++ primer, <cstdlib> header defines NULL. cpluspplus says it is defined in <cstddef>.

                最终,如果不包含正确的标题,我认为无法引用 NULL.

                Ultimately, if the right header is not included, I thought NULL can't be referenced.

                据我所知,在仅包含 <iostream>

                请帮助我理解这一点.

                推荐答案

                C++03 section 18.1.2 说在 cstddef 中定义了 NULL.

                C++03 section 18.1.2 says that NULL is defined in cstddef.

                在某些实现中,iostream 可能包含 cstddef,因此包含 iostream 也会为您提供 NULL.

                On some implementations, iostream may include cstddef, so including iostream would also give you NULL.

                这篇关于什么头文件在 C++ 中定义了 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++ 引用发生变化)
              2. <legend id='gAJOQ'><style id='gAJOQ'><dir id='gAJOQ'><q id='gAJOQ'></q></dir></style></legend>

                    • <bdo id='gAJOQ'></bdo><ul id='gAJOQ'></ul>
                        <tbody id='gAJOQ'></tbody>
                        <tfoot id='gAJOQ'></tfoot>
                      1. <small id='gAJOQ'></small><noframes id='gAJOQ'>

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