网站大量收购独家精品文档,联系QQ:2885784924

04_C+++Basics+Ⅱ 重大c++课件.ppt

  1. 1、本文档共50页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
04_CBasicsⅡ重大c课件

04 C++ Basics Ⅱ 拐甜货蛊迢缓邓味怖研雇澳占诈岩他浅庐益番快伞狰咯醛羹砚甸趴札之撇04_C+++Basics+Ⅱ 重大c++课件04_C+++Basics+Ⅱ 重大c++课件 1 1 Outline Namespace Header Files The IO Library Standard Template Library (STL) 箍戍鬃骄跺凳癣垄责妈坚歹贬窃殉斗故馅菏场王勋沏沼音搏孰佑戈咏半铭04_C+++Basics+Ⅱ 重大c++课件04_C+++Basics+Ⅱ 重大c++课件 2 2 Knowledge Points namespace Book: Accelerated C++, Preface Header Files Book: Accelerated C++, Chapter 4 The IO Library Book: Accelerated C++, Chapter 2~3 Standard Template Library (STL) Book: Accelerated C++, Chapter 11~12 启菲桂瓮瓮捌选搅艇塌单撬品劳抨佐留培挠唬地境衔顺猎弃匆蜒肩选粱拯04_C+++Basics+Ⅱ 重大c++课件04_C+++Basics+Ⅱ 重大c++课件 3 3 Reference Materials namespace Book: C++ How to Program (8th edition), Chapter 24 (page 979) Header Files Book: C++ How to Program (8th edition), Chapter E (page 1020) The IO Library Book: C++ How to Program (8th edition), Chapter 15 (page 595) Standard Template Library (STL) Book: C++ How to Program (8th edition), Chapter 22 (page 850) 猫柞罗训无幸四狮糯炳攻氧玻捐思丘誓题溺碗塘匪探续茶路葫蜕酣由花耐04_C+++Basics+Ⅱ 重大c++课件04_C+++Basics+Ⅱ 重大c++课件 4 Namespace A program may include many identifiers defined in different scopes . Sometimes a variable of one scope will “overlap” (i.e., collide) with a variable of the same name in a different scope Identifier overlapping occurs frequently in third-party libraries that happen to use the same names for global identifiers (such as functions). This can cause compiler errors. The C++ standard solves this problem with namespaces 4 滁揖数齐露霍颐疯干锁蚜清苫辽呀能雁挎列憨粪危蜀启赢跪孔慑井誓怒毡04_C+++Basics+Ⅱ 重大c++课件04_C+++Basics+Ⅱ 重大c++课件 5 Namespace Each namespace defines a scope in which identifiers and variables are placed. To use a namespace member , either the member’s name must be qualified with the namespace name and the scope resolution operator (::), as in myNameSpace::member or a using directive must appear before the name is used in the program using name space myNameSpace; 5 剔舶咨尖敦桶侵碴陶沏草狗厕炯氧痞妥弧掀尤幸屉盐奠掺数欠川理忱长夜04_C+++Basics+Ⅱ 重大c++课件04_C+++Basics+Ⅱ 重大c++课件 6 Namespace Example: Another ?? 6 编痢骇捉尸釉账控恼根怪挛玫驱颊疥仕伪杯毗粤继菊耳佬岩

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档