C++中的万能头文件

#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> using namespace std;

int main(){

    

    return 0;

}

 

可以直接转化为:

#include<bits/stdc++.h>

using namespace std;

int main()

 

    return 0;

 }

 

posted @ 2022-12-28 11:05  一统天下。  阅读(2138)  评论(0编辑  收藏  举报