码迷,mamicode.com
首页 > 编程语言 > 详细

#include<bits/stdc++.h>

时间:2018-04-20 23:36:55      阅读:301      评论:0      收藏:0      [点我收藏+]

标签:topcoder   ace   tail   namespace   font   blog   string   国外   hdu   

链接 https://blog.csdn.net/FX677588/article/details/69776258

这个头文件是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;

在国内oj中,poj,hdu 不支持这个函数,这几个oj的编译器问题,其他国外的oj,还有台湾的oj都支持,CF,Topcoder也都支持。当然,其实这是一个偷懒的写法,但是会降低编译速度。笔试平台可以使用,方便,VS中并不支持,一般G++ 4.4以上就支持这个头文件了。当然,私下自己学习就不要去使用了,对你的自主学习一点都没有好处。

#include<bits/stdc++.h>

标签:topcoder   ace   tail   namespace   font   blog   string   国外   hdu   

原文地址:https://www.cnblogs.com/gaochaochao/p/8893903.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!