#includebits/stdc++.h包含C++的所有头文件
生活随笔
收集整理的這篇文章主要介紹了
#includebits/stdc++.h包含C++的所有头文件
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
研究題解看見別人用這個函數,然后就能直接用vector,set,string那些函數了,摸不著頭腦,感覺特神奇就百度了一下,才發現這個是C++版本升級,然后文件自帶的,方便了程序員吧。不然每次都得敲那模板老長……
使用和平常的頭文件一樣,如下:
#include<bits/stdc++.h>
using namespace std;
int main() { int a,b; cin>>a>>b; cout<<a+b<<endl; return 0; } #include<bits/stdc++.h>這個頭文件包含以下等等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>?
等等……
轉載于:https://www.cnblogs.com/lltyym/p/11303682.html
總結
以上是生活随笔為你收集整理的#includebits/stdc++.h包含C++的所有头文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 包含锚点平滑滚动效果/解决锚点链接碰到固
- 下一篇: sprintf 和strcpy 的差别