- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
面向对象程序设计Chapter 03
上节内容回顾 Variable Declarations (变量声明) float x1; Constant Declarations(声明符号常量) const int VOTING_AGE = 18 ; Assignment Statement(赋值语句) age = 12 ; Output Statements(输出语句) cout “The answer is ” 3 * 4 ‘\n’; Input statement cin a s ; Chapter 3 Topics Constants of type int and float(整形和浮点类型常量) Evaluating arithmetic expressions(计算算术表达式的值) Implicit type coercion and explicit type conversion (隐式类型转换和强制类型转换) Calling a value-returning function(调用带有返回值的函数) Using function arguments(函数参数的使用) Using C++ library functions in expressions (在表达式中使用c++库函数) Calling a void function(调用带有返回值的函数) C++ manipulators to format output(格式化输出所用的操纵符) String operations length, find, substr(字符串操作函数) 3.1 Numeric Data Type(数值数据类型) Char(字符型) 1.3 C++的基本数据类型与存储形式 1.3.3 基本类型 1.3.3 基本类型 1.3.3 基本类型 1.3.3 基本类型 3.1.2 Floating-point Types(浮点类型) 3.2 Declaration for Numeric Types数值类型的声明 3.2.2 Variable Declaration(变量声明) 3.3 Simple Arithmetic Expressions(简单的算术表达式) 3.3.1 Arithmetic Operators(算术运算符) 3.3.2 Increment and Decrement Operators自增和自减运算符 3.4 Compound Arithmetic Expressions(复合算术表达式) 3.4.1 Precedence Rules(优先级规则) 3.4.2 Type Coercion and Type Casting (隐式类型转换和强制类型转换) 1、 Type Coercion 1、 Type Coercion 1、 Type Coercion 1、 Type Coercion 2、 Type Casting (强制类型转换) 3、Mixed Type Expression 3.5 Function Calls and library function(函数调用和库函数) 3.5 Function Calls and library function(函数调用和库函数) 3.5.2 Library Functions(库函数) 3.5.3 Void Functions(procedure)无返回值函数(过程) 3.6 Formatting the Output(格式化输出) 3.6.1 Insertion Operator ( )插入操作符 the insertion operator takes 2 operands the left operand is a stream expression, such as cout the right operand is an expression of simple type, or a string, or a manipulator Output Statements(输出语句) Syntax Template iostream.h is a header file. an istream object named cin (keyboard) an ostream object named cout (screen) 3.6.2 Manipulators (操纵符) manipulators are used only in input and output statements endl, fixe
您可能关注的文档
最近下载
- 电子测量技术(第5版)全套PPT课件.pptx
- QGDW 1152.2-2014- 电力系统污区分级与外绝缘选择标准 第2部分:直流系统.pdf VIP
- 中小学学三年发展规划(2025-2028).docx VIP
- J-T-G- 5120-2021 公路桥涵养护规范(正式版).docx VIP
- 建筑工程图集 20CJ95-1:装配式保温楼地面建筑构造——FD干式地暖系统.pdf VIP
- 3 电子银行_纵横商务汉语 中级阅读2.pptx VIP
- 阿那亚品牌手册.pdf VIP
- 二氧化碳气瓶瓶阀爆破片爆破浅析 .docx VIP
- 隧道二衬施工缝缺陷处理方案.docx VIP
- 2025年秋学期冀教版小学数学二年级上册教学进度表.docx VIP
文档评论(0)