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?

      时间:2023-12-02
      <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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:为什么 NULL/0 是对象的非法内存位置? 下一篇:如何使用 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>
                    <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>