高级c++头文件bits/stdc++.h
2016-05-02 16:46
316 查看
用这种方法声明头文件只需两行代码
#include<bits/stdc++.h>
using namespace std;
这个头文件包含以下等等C++中包含的所有头文件:
#include <iostream>
#include <cstdio>
#include <fstream>
#include <algorithm>
#include <cmath>
#include <deque>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <map>
#include <stack>
#include <set>
等等……
但是部分OJ站可能不支持这种写法
已知UVa可以这么用
补充:已知的弊端是,用这种方法声明库,写代码过程中,代码补全功能不会被激活
#include<bits/stdc++.h>
using namespace std;
这个头文件包含以下等等C++中包含的所有头文件:
#include <iostream>
#include <cstdio>
#include <fstream>
#include <algorithm>
#include <cmath>
#include <deque>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <map>
#include <stack>
#include <set>
等等……
但是部分OJ站可能不支持这种写法
已知UVa可以这么用
补充:已知的弊端是,用这种方法声明库,写代码过程中,代码补全功能不会被激活
相关文章推荐
- 高级c++头文件bits/stdc++.h
- C++继承:公有,私有,保护
- 1644 免费馅饼 题解(c++)(S.B.S.)
- 1644 免费馅饼 题解(c++)(S.B.S.)
- c++ istringstream ostringstream stringstream
- c++ string reverse 用法
- C++中vector容器的逆序访问
- C语言中一类特殊的数组越界!!
- HDU 1257 最少拦截系统(贪心)
- C语言 文件操作10--配置文件读写
- OJ里C++和G++的区别
- c++和G++的区别
- C/C++常量指针和指针常量的区别
- 《More Effective C++》读书笔记-技术(二)
- C++ 重载解析 知多少?
- C语言找素数
- C语言打印9*9乘法口诀表
- C++ 模板函数 知多少?
- c++第四次作业
- c++基础回顾