C++万能头文件 #include <bits/stdc++.h>

相信CSDN的开发者们在写某些小游戏的时候总会遇到一些难题,比如——

想要延迟,Sleep(xxx),可是必须要 #include <ctime> 的头文件才行,怎么办?

要 #include <ctime> 的头文件,必须要输入 #include <windows.h> 才行。

那我的头文件岂不是越来越多了?

下面,我将带领大家看一个C++的万能头文件!

有了它,什么头文件都不用敲了!

它就是——

#include <bits/stdc++.h>

啊!看到自己的代码如此整洁,是不是很兴奋呢?

相对于平常的......

#include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <clocale>
#include <cmath>
#include <complex>     
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>      
#include <exception>
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
    xxx;
    xxx;
    return 0;
}

而现在......

#include <bits/stdc++.h>
using namespace std;
int main()
{
    xxx;
    xxx;
    return 0;
}

是不是甚至感到有些尬?这个招数非常好用,记得点赞关注哦~

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值