<bits/stdc++.h>头文件号称"万能头文件“ 接下来让我们一起看一看它到底万能不万能

目录

前言

第一部分


前言

<bits/stdc++.h>这个头文件相信会一点DEVC++的人都不会陌生 但是它其实说起来万能 但实际上讷~ 并不是完全万能的


第一部分

打个比方说<windows.h>就不包含在<bits/sstdc++.h>这个头文件里面的

我们来看一下我们的<bits/stdc++.h>这个”万能头文件“到底包含了什么吧~


第二部分(具体包含的头文件)

直接上这个名为"stdc++.h"的文件的具体代码

// C++ includes used for precompiling -*- C++ -*-// Copyright (C) 2003-2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library.  This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
// <http://www.gnu.org/licenses/>./** @file stdc++.h*  This is an implementation file for a precompiled header.*/// 17.4.1.2 Headers// C
#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdalign>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#endif// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>#if __cplusplus >= 201103L
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#endif

还是老样子希望各位大佬们点个赞

DEVC++中的 “万能头文件” <bits/stdc++.h>相关推荐

  1. C++万能头文件(bits/stdc++.h)

    先说一句 C++万能头文件,并不是所有场合都能用,比如说POJ. 我曾在POJ提交过程序,编译错误.就是因为用了万能头文件. 意思就是,不认识<bits/stdc++.h>. 因为,万能头 ...

  2. VS C++万能头文件bits/stdc++.h的配置

    万能头文件:#include<bits/stdc++.h> 路径:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\To ...

  3. 【环境配置】macOS的Xcode中使用C++万能头文件bits/stdc++.h

    启动终端 cd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c ...

  4. 【C++】头文件 bits/stdc++.h 是啥?

    原文地址: [C++]头文件 bits/stdc++.h 是啥? 欢迎访问我的博客:http://blog.duhbb.com/ 嘿嘿, 以后写 leetcode 的话, 本地直接就引用这个文件, 还 ...

  5. 高级c++头文件bits/stdc++.h

    用这种方法声明头文件只需两行代码 #include<bits/stdc++.h> using namespace std; 这个头文件包含以下等等C++中包含的所有头文件: #includ ...

  6. 浅说万能头<bits/stdc++.h>

    #include<bits/stdc++.h>包含了C和C++的绝大多数头文件,像iostream.cmath.algorithm.iomanip.string之类的,这意味着我们不再需要 ...

  7. C++预编译头文件 bits/stdc++.h

    有时候会看到别人包含这样的头文件: #include "bits/stdc++.h" 这个头文件中有很多预先包含的头文件,内容如下: // C++ includes used fo ...

  8. Cfree之万能头函数bits\stdc++.h的添加和注意事项

    实现步骤 一.创建一个.txt文件,把下面的代码复制进去 // C++ includes used for precompiling -*- C++ -*-// Copyright (C) 2003- ...

  9. std.h对应linux头文件,bits/stdc++.h头文件介绍(包含源代码)

    注:转自http://blog.csdn.net/charles_dong2/article/details/56909347,同为本人写的,有部分修改. 之前在一个小OJ上刷题时发现有人是这么写的: ...

  10. Visual Studio 中使用万能头文件 #include <bits/stdc++.h>

    Visual Studio 中使用万能头文件 #include 前言 最近开始使用VS,之前用的DEV C++软件可直接使用 #include <bits/stdc++.h> ,但VS中并 ...

最新文章

  1. 教学案例 计算机,计算机教学案例及反思
  2. 解决:AttributeError: ‘Graph‘ object has no attribute ‘number_of_selfloops‘
  3. 敲代码、作诗、写论文无所不能!史上最大AI模型GPT-3强势霸榜Github
  4. 基于邮件通道的WCF通信系统
  5. oracle和mysql查询_ORACLE 数据库 查询语句与DML语句
  6. sping配置文件中引入properties文件方式
  7. android如何使用ios14组件,ios14小组件怎么添加 苹果ios14小组件添加使用教程
  8. 【栈】【字符】匹配(jzoj 1612)
  9. springboot 引入jdbc驱动_SpringBoot+MyBatis+Druid整合demo
  10. 从源码角度详解Java的Callable接口
  11. 组件注册-@Scope-设置组件作用域
  12. 【人生】比未知更可怕的是预知---献给那些毕业季的童鞋
  13. css不继承上级样式_这个笔记《CSS基本概念》,让菜鸟轻松学会给网页穿外衣
  14. 幂的后三位相同 详解(C++)
  15. 2022大厂高频面试题之CSS篇
  16. PS(Photoshop)去水印的4个方法
  17. QTreeView更改节点图标和大小
  18. 网页 php,怎么用php写一个网页
  19. 用Unity做游戏,你需要深入了解一下IL2CPP
  20. 《STL源码剖析》问题总结

热门文章

  1. u3d商业级开心消消乐源码开发总结
  2. 服务器内网怎么更新微软补丁,架WSUS服务器 内网自动打补丁
  3. Linux下c语言多线程编程
  4. oracle vfp,VFP如何连SQL Server及Oracle
  5. 过去25年八大计算机病毒:冲击波和震荡波入选
  6. 24个最好免费下载电子书(Ebooks)的网站
  7. ubuntu12.04完美安装QQ2012、QQMusic、Foxmail等
  8. 自动驾驶全球产业链全景图
  9. window sserver 2008 r2安装教程
  10. ttl备份机顶盒固件_机顶盒刷机TTL教程,任意安装安卓软件,免费看电视直播