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

vc第二章(VC second chapters).doc

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

vc第二章(VC second chapters) The second chapter is the sequential structure One choice question 1, the answer is C Null statement Null statements indicate that the program does not produce any action during execution, but the arbitrary use of null statements causes errors in logic and is carefully used. 2, the answer is B Test site: statement The statement must end with a semicolon. A, C, and D expressions do not have semicolons, so they cannot form statements. 3, the answer is C Test points: output statements and arithmetic expressions Int x=13, y=4 x, y; x/y as integer, so take only integer part (rounding method), a value of 3, Assign 3 to x, and the value of the entire x=x/y expression is the value of the variable x on the left, so x is 3 and output is%d, signed decimal output. Note: integer divided by integer, the result is still integer. 4, the answer is A A, B as integer, a/b a, B is an integral part of business income, so it is 0, then the 0 is assigned to C, so the value of C is 0. Note: integer divided by integer, the result is still integer. 5, the answer is D Test sites: notes, variables, data inputs, and outputs The notes must use / * at the beginning and end with *, which /, * can not have other symbols, nor is the space bar. The computer does not compile the annotation section, meaning that annotations do not have any effect on the C language program, and can insert notes wherever they can insert spaces. However, annotations cannot be nested, such as: /*12212/*1221*/22*/ Variables should be defined first and then used. And to satisfy the naming rules of the user identifier. There is no / * and * A, so no comment. Therefore, A answer wrong. B defines r as an integer, does not make errors at compile time, automatically converts type, automatically calculates the value of an expression into a value assigned to the left of the assignment number and then assignments. So the variable R is integer, thats correct. The C variable s is floating-point, that is, the

您可能关注的文档

文档评论(0)

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

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

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档