C语言头文件:
#include<stdio.h>
万能头:
#include<bits/stdc++.h>
using namespace std;
C++中也可以使用C语言头文件,所以可以将两者结合:
#include<stdio.h>
#include<bits/stdc++.h>
using namespace std;
math是数学函数头文件,虽然被<bits/stdc++.h>包括,但也可以融合进来:
#include<stdio.h>
#include<math.h>
#include<bits/stdc++.h>
using namespace std;
我们也可以再融合几种:
#include<fenv.h>
#include<float.h>
#include<stdio.h>
#include<math.h>
#include<bits/stdc++.h>
using namespace std;
ANSI C共包括15个头文件。1995年,Normative Addendum 1(NA1)批准了3个头文件(iso646.h、wchar.h和wctype.h)增加到C标准函数库中。C99标准增加6个头文件(complex.h、fenv.h、inttypes.h、stdbool.h、stdint.h和tgmath.h)。C11标准中又新增了5个头文件(stdalign.h、stdatomic.h、stdnoreturn.h、t