#include包含当前c中包含的所有头文件
比较:
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#include usingnamespacestd;
intmain ()。
返回0;
() ) ) ) )。
可以直接转换为
#包含
usingnamespacestd;
intmain () )
返回0;
() ) ) ) )。
兼容性问题:
请注意,目前还不支持POJ。 g、c都不支持。 HDU部分支持(g支持,无c支持)。
其他海外的oj,还有台湾的oj也支持。 也支持CF、Topcoder。
当然,这是偷懒的写法,但会降低编译速度。 (我还不知道为什么编译速度会下降。 稍后学习编译原理来填补漏洞吧。
笔试平台可以使用,很方便。 VS上不支持。 G 4.4或更高版本通常支持此头文件。 当然,不要用私下自己学习。 你的自主学习没有任何好处。
c 11支持这一点
po上的源代码
//cincludesusedforprecompiling-- c-- * -
//copyright(c ) 2003-2014 freesoftware foundation, Inc.thisfileispartofthegnuisoclibrary.thislibraryisfree//softwary youcanredistributeitand/ormodifyitunderthe/termsofthegnugeneralpubliclicenseaspublishedbythe//freesoftware foundation either version 3,or(atyouroption )//any la ter ver
//thislibraryisdistributedinthehopethatitwillbeuseful,//but WITHOUT ANY WARRANTY; withouteventheimpliedwarrantyof/merchantabilityorfitnessforaparticularpurpose.see the//gnugeneralpubliclicenseformoredisedistyof
//Under Section 7 of GPL version 3,youaregrantedadditional//permissionsdescribedinthegcruntimelibraryexception,version/
//youshouldhavereceivedacopyofthegnugeneralpubliclicenseand//acopyofthegccruntimelibraryexceptionalongwithisprogram; //seethefilescopying3and copying.runtime respectively.if not,see//。
/** @file stdc .h
* thisisanimplementationfileforaprecompiledheader。
*/
//17.4.1.2头
//C#ifndef _GLIBCXX_NO_ASSERT
#include #endif
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#if__cplusplus=201103L
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#include #endif
//C
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#if__cplusplus=201103L
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#包含
#include #endif