dev万能头文件_超级好用的C++万能头文件
#include包含了目前c++所包含的所有頭文件
對(duì)比:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include using?namespace?std;
int?main(){
return?0;
}
可以直接轉(zhuǎn)化為:
#include
using?namespace?std;
int?main()
return?0;
}
兼容性問(wèn)題:
注意,目前POJ還不支持(G++、C++都不支持)。HDU部分支持(G++支持,C++不支持)。
其他國(guó)外的oj,還有臺(tái)灣的oj都支持,CF,Topcoder也都支持。
當(dāng)然,其實(shí)這是一個(gè)偷懶的寫(xiě)法,但是會(huì)降低編譯速度(為何會(huì)降低編譯速度,我還不能知道,等到之后學(xué)編譯原理再來(lái)填坑吧)。
筆試平臺(tái)可以使用,方便,VS中并不支持,一般G++ 4.4以上就支持這個(gè)頭文件了。當(dāng)然,私下自己學(xué)習(xí)就不要去使用了,對(duì)你的自主學(xué)習(xí)一點(diǎn)都沒(méi)有好處。
c++11支持這個(gè)
po上的源代碼
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2014 Free Software Foundation, Inc. This file is part of the GNU ISO C++ Library. ?This library is free// software; you can redistribute it and/or modify it under the// terms of the GNU General Public License as published by the// Free Software Foundation; either version 3, or (at your option)// any later version.
// This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ?See the// GNU General Public License for more details.
// Under Section 7 of GPL version 3, you are granted additional// permissions described in the GCC Runtime Library Exception, version// 3.1, as published by the Free Software Foundation.
// You should have received a copy of the GNU General Public License and// a copy of the GCC Runtime Library Exception along with this program;// see the files COPYING3 and COPYING.RUNTIME respectively. ?If not, see// .
/** @file stdc++.h
* ?This is an implementation file for a precompiled header.
*/
// 17.4.1.2 Headers
// C#ifndef _GLIBCXX_NO_ASSERT
#include #endif
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#if?__cplusplus >= 201103L
#include
#include
#include
#include
#include
#include
#include
#include
#include #endif
// C++
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#if?__cplusplus >= 201103L
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include #endif
總結(jié)
以上是生活随笔為你收集整理的dev万能头文件_超级好用的C++万能头文件的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: c语言的万能头文件,C/C 头文件太难记
- 下一篇: php老师把毕生的功力,为了表现雨下的凶