1. <legend id='s7kaK'><style id='s7kaK'><dir id='s7kaK'><q id='s7kaK'></q></dir></style></legend>
      <tfoot id='s7kaK'></tfoot>
    2. <small id='s7kaK'></small><noframes id='s7kaK'>

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

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

        #include &lt;bits/stdc++.h&gt;在 C++ 中工作?

        时间:2023-09-19

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

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

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

              <tfoot id='fRlL9'></tfoot>

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

                1. 本文介绍了#include &lt;bits/stdc++.h&gt;在 C++ 中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我从 codeforces 博客中了解到,如果我们添加 #include <bits/stdc++.h>C++ 程序中,则不需要包含任何其他头文件.#include #include 是如何工作的,是否可以使用它而不是包含单个头文件?

                  I have read from a codeforces blog that if we add #include <bits/stdc++.h> in a C++ program then there is no need to include any other header files. How does #include <bits/stdc++.h> work and is it ok to use it instead of including individual header files?

                  推荐答案

                  它基本上是一个头文件,还包括每个标准库和 STL 包含文件.我能看到它的唯一目的是测试和教育.

                  It is basically a header file that also includes every standard library and STL include file. The only purpose I can see for it would be for testing and education.

                  参见例如GCC 4.8.0/bits/stdc++.h 源码.

                  使用它会包含很多不必要的东西并增加编译时间.

                  Using it would include a lot of unnecessary stuff and increases compilation time.

                  正如尼尔所说,它是预编译头的实现.如果您正确地将它设置为预编译,它实际上可以根据您的项目加快编译时间.(https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html)

                  As Neil says, it's an implementation for precompiled headers. If you set it up for precompilation correctly it could, in fact, speed up compilation time depending on your project. (https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html)

                  但是,我建议您花时间了解每个 sl/stl 标头并单独包含它们,并且除了预编译目的之外不要使用超级标头".

                  I would, however, suggest that you take time to learn about each of the sl/stl headers and include them separately instead, and not use "super headers" except for precompilation purposes.

                  这篇关于#include &lt;bits/stdc++.h&gt;在 C++ 中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                      <tbody id='Z1Mpp'></tbody>

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

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

                          <tfoot id='Z1Mpp'></tfoot>
                        1. <legend id='Z1Mpp'><style id='Z1Mpp'><dir id='Z1Mpp'><q id='Z1Mpp'></q></dir></style></legend>