- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
《C++ History》.ppt
C++ History CPL – Combined Programming Language (1960s, University of Cambridge, University of London) BCPL – Basic Combined Programming Language (1966, Martin Richards, language for writing compilers)GET libhdrLET start() = VALOF{ FOR i = 1 TO 5 DO writef(fact(%n) = %i4*n, i, fact(i)) RESULTIS 0}AND fact(n) = n=0 - 1, n*fact(n-1) B (Dennis Ritchie, Bell Labs, 1969) printn(n,b) { extrn putchar; auto a; if(a=n/b) /* assignment, not test for equality */ printn(a, b); /* recursive */ putchar(n%b + 0);} C (Dennis Ritchie, Bell Labs, early 1970s, general purpose) C++ (Stroustrup, Bell Labs, 1983, C with objects) C++/CLI (Microsoft, 2005, “Managed” ECMA C++ Standard) How C++ Works Source Code C++ Preprocessor Source files processed by preprocessor to shape the code by substituting attributes*, expanding macros, processing conditional directives, including external files, issuing compiler directives Preprocessor directives begin with # Attributes (COM, IDL, compiler, .NET) are enclosed in [], e.g. [in] * Attributes are Microsoft’s innovation, that just now has been standardized by ECMA Preprocessor Definitions #define can define a flow control entity: #define MYHEADER_H * Capitalize the name, use underscore to separate words a constant: #define MYHEADER_H #define M_PI 3.1415f * Capitalize the name, use underscore to separate words or a macro: #define MAX(a, b) ((a) (b) ? (a) : (b)) * Capitalize the name, enclose operands in parenthesis #undef undefines a previously defined entity: #undef M_PI #undef MAX #undef MYHEADER_H Including Files #include #include MyHeader.h #include iostream * Name your include files .h What’s appropriate for include files? * Declarations, e.g. constants, external functions, classes, structures, macros, etc. What’s inappropriate for include files? * Code snippets, function bodies, class implementations, i.e. non-declarative code Conditional Compilation #if / #ifdef / #ifndef - #else / #elif - #endif #ifndef MYHEADER_H #inc
您可能关注的文档
- 《Blog协同促进通识课程辅助教学模式改革与实践构想》.pdf
- 《Blower Energy Use》.pdf
- 《Bluetooth 4.2 Low Energy》.pdf
- 《Bluetooth Architecture Overview》.pdf
- 《Bluetooth Audio Module》.pdf
- 《BLUETOOTH COMMUNICATIONS》.pdf
- 《Bluetooth EZ-Extender》.pdf
- 《Bluetooth Keyboard with TrackPoint》.pdf
- 《Bluetooth Low Energy Module Data》.pdf
- 《Bluetooth Low》.pdf
最近下载
- 供配电安全管理规程供配电安全管理规程.doc VIP
- ACS880 FPNO_21_PROFINET IO通讯调试指导.docx VIP
- 2025年新高考语文试题全国Ⅰ卷(附参考答案) .pdf VIP
- 人教鄂教版五年级上册科学全册单元测试含期中期末及答案.docx
- BH207 GL 12 050风险岗位应急处置管理制度 副本.docx VIP
- 中小学幼儿园基孔肯雅热健康教育课件.pptx VIP
- 2024版社区两委考试题目.pdf VIP
- 河南省南阳市2024-2025学年高二下学期7月期末质量评估政治试题.pdf VIP
- 2024年水发集团有限公司招聘真题.docx VIP
- 2024年无锡市工会社会工作者招聘考试真题 .pdf VIP
文档评论(0)