- 1、本文档共37页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
国外C语言程序设计英文课件-lecture2
Computer Programming Lecture 2 02.10.2012 Lecture 2: Outline Variables, Data Types, and Arithmetic Expressions [K- ch.4] Working with Variables Understanding Data Types and Constants The Basic Integer Type int The Floating Number Type float The Extended Precision Type double The Single Character Type char The Boolean Data Type _Bool Storage sizes and ranges Type Specifiers: long, long long, short, unsigned, and signed Working with Arithmetic Expressions Integer Arithmetic and the Unary Minus Operator The Modulus Operator Integer and Floating-Point Conversions Combining Operations with Assignment: The Assignment Operators Types _Complex and _Imaginary Variables Programs can use symbolic names for storing computation data Variable: a symbolic name for a memory location programmer doesn’t have to worry about specifying (or even knowing) the value of the location’s address In C, variables have to be declared before they are used Variable declaration: [symbolic name(identifier), type] Declarations that reserve storage are called definitions The definition reserves memory space for the variable, but doesn’t put any value there Values get into the memory location of the variable by initialization or assignement Variables - Examples Variable declarations Data type Variable name Variable names Rules for valid variable names (identifiers) in C : Name must begin with a letter or underscore ( _ ) and can be followed by any combination of letters, underscores, or digits. Any name that has special significance to the C compiler (reserved words) cannot be used as a variable name. Examples of valid variable names: Sum, pieceFlag, I, J5x7, Number_of_moves, _sysflag Examples of invalid variable names: sum$value, 3Spencer, int. C is case-sensitive: sum, Sum, and SUM each refer to a different variable ! Variable names can be as long as you want, although only the first 63 (or 31) characters might be significant. (Anyway, it’s not practical to use varia
您可能关注的文档
- 7-氧化还原反应.ppt
- 第5章沉淀溶解平衡11b.ppt
- 2011届高三化学第一轮复习——沉淀的溶解平衡.ppt
- 高三一轮复习:难溶电解质的溶解平衡.ppt
- AppCan插件使用文档之uexDownloaderMgr.docx
- 第四节 难溶电解质的溶解平衡3.ppt
- 第9章 原电池和氧化还原反应.ppt
- MATLAB讲义第5讲.ppt
- 化学沉淀溶解平衡.ppt
- Arduino编程语言参考大全.docx
- 2025年成都市玩偶生产荧光涂鸦互动玩偶开发可行性研究报告.docx
- 2025年成都市海绵生产用于体育馆室外运动场地透水改造可行性研究报告.docx
- 2025年天津市体操鞋企业团建运动应用报告.docx
- 2025年上海市溶洞极限运动(速降)场地开发可行性研究报告.docx
- 2025年上海市涵洞工程施工技术应用可行性研究报告.docx
- 2025年上海市体育场馆设施扎带安全防护可行性研究报告.docx
- 2025年上海市牦牛育肥产业园区建设可行性研究报告.docx
- 2025年旅拍宠物陪伴拍摄项目可行性研究报告.docx
- 2025年上海市进口食品节庆主题快闪店可行性研究报告.docx
- 2025年上海市洗选厂尾矿综合利用产业化可行性研究报告.docx
文档评论(0)