欢迎来到天天文库
浏览记录
ID:37503340
大小:362.98 KB
页数:222页
时间:2019-05-24
《C-C+++Reference》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、C/C++ReferenceGeneralC/C++C++Pre-processorcommandsC++I/OOperatorPrecedenceC++StringsEscapeSequencesASCIIChartC++StandardTemplateLibraryDataTypesKeywordsC++BitsetsC++Double-EndedQueuesStandardCLibrary:C++ListsC++MapsStandardCI/OC++MultimapsStandardCString&CharacterC++Mu
2、ltisetsStandardCMathC++PriorityQueuesStandardCTime&DateC++QueuesStandardCMemoryC++SetsOtherstandardCfunctionsC++StacksC++VectorsIteratorsAllCFunctionsAllC++FunctionsQuestions?CheckouttheFAQorcontactus.Herearesomeotherlanguagereferences.Lastmodifiedon1/25/2004byNateKohl
3、,withhelpfromalotofpeople.cppreference.com->Pre-processorcommandsPre-processorcommands#,##manupilatestrings#definedefinevariables#errordisplayanerrormessage#if,#ifdef,#ifndef,#else,#elif,#endifconditionaloperators#includeinsertthecontentsofanotherfile#linesetlineandfil
4、einformation#pragmaimplementationspecificcommand#undefundefinevariablesPredefinedvariablesmiscellaneousvariablescppreference.com->Pre-processorcommands->DetailsPre-processorcommands#,##The#and##operatorsareusedwiththe#definemacro.Using#causesthefirstargumentafterthe#to
5、bereturnedasastringinquotes.Forexample,thecommand#defineto_string(s)#swillmakethecompilerturnthiscommandcout<6、#y...intxy=10;...willmakethecompilerturncout<7、words,#definecausesthecompilertogothroughthefile,replacingeveryoccurrenceofmacro-namewithreplacement-string.Thereplacementstringstopsattheendoftheline.Here'satypicalusefora#define(atleastinC):#defineTRUE1#defineFALSE0...intdone=0;while(done!=TRUE){...}Anotherfeatureoft8、he#definecommandisthatitcantakearguments,makingitratherusefulasapseudo-functioncreator.Considerthefollowingcode:#defi
6、#y...intxy=10;...willmakethecompilerturncout<7、words,#definecausesthecompilertogothroughthefile,replacingeveryoccurrenceofmacro-namewithreplacement-string.Thereplacementstringstopsattheendoftheline.Here'satypicalusefora#define(atleastinC):#defineTRUE1#defineFALSE0...intdone=0;while(done!=TRUE){...}Anotherfeatureoft8、he#definecommandisthatitcantakearguments,makingitratherusefulasapseudo-functioncreator.Considerthefollowingcode:#defi
7、words,#definecausesthecompilertogothroughthefile,replacingeveryoccurrenceofmacro-namewithreplacement-string.Thereplacementstringstopsattheendoftheline.Here'satypicalusefora#define(atleastinC):#defineTRUE1#defineFALSE0...intdone=0;while(done!=TRUE){...}Anotherfeatureoft
8、he#definecommandisthatitcantakearguments,makingitratherusefulasapseudo-functioncreator.Considerthefollowingcode:#defi
此文档下载收益归作者所有
点击更多查看相关文章~~