- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
全国青少年信息学奥林匹克竞赛系列活动(National Youth Informatics Olympiad campaign series)
全国青少年信息学奥林匹克竞赛系列活动(National Youth Informatics Olympiad campaign series)
Second assignment statement, output statement
In the last lesson, we learned the basic structure of the Pascal program. In a program, all the operations are performed by the execution part, and the execution part is composed of one sentence. So, lets start with the basic sentence of Pascal language, and learn the basic method of program design step by step in the learning process.
In this lesson, we will learn two kinds of statements, i. e. assignment statement and output statement. Before we learn the sentences, we need to understand some basic knowledge of Pascal language.
Constants, variables, and arithmetic expressions
(a) constant: the quantity in which the value cannot be changed during a program is called a constant. Such as 123145.88,abc, true and so on.
1, integer constant: integer constant, we use the usual decimal integer expression, including positive integers, negative integers and zero. Such as: 138, 0, -512 and so on are integer constants, and 18. or 18 are not integer constants. There is a standard identifier for the Maxint Pascal, which represents the maximum number of integer of the computer system used allowed, and the smallest integer is Maxint; Turbo Pascal also defines a long integer constant MaxLongInt, its value is 2147483647.
Note: the scope depends on the integer representation of the computer system in the word, such as: now most of the machine word is 16, the range of integer they can support the -215 to +215-1, -32768 to +32767, this involves a number of symbols and complement of knowledge; you want to know the range of integer the use of computer can represent, in this statement can know: (-maxint-1, WRITE , maxint)
2, the real type constants: including positive real numbers, negative real numbers and real zero, in fact, is often called decimal, Pascal in the form of solid constants in two forms.
The decimal representation: This is the representation of peoples dail
您可能关注的文档
- 会计环境对会计职业道德的影响及改善 - 期刊杂志免费杂志电子杂志杂志下载(The influence and improvement of accounting environment on accounting professional ethics - Journal, magazine, free magazine, electronic magazine, magazine download).doc
- 会计电算化记账凭证摘要的书写技巧(Writing skills of accounting voucher summary of computerized accounting).doc
- 会计环境对会计发展的影响(The influence of accounting environment on Accounting Development).doc
- 会计恒等式和税率表(Accounting identities and tax rates).doc
- 会计的职能1(Functions of accounting 1).doc
- 会计继续教育2014年甘肃《小企业会计准则》课件测试题(Accounting continuing education -- the courseware test of Gansu small business accounting standard in 2014).doc
- 会计职业道德与诚信的问题-会计-论文(Accounting professional ethics and integrity - Accounting - paper).doc
- 会计账务调整的基本方法(The basic method of accounting adjustment).doc
- 会讲官话才能当好官(Speak Mandarin to be a good official).doc
- 会说话,多做事(Able to talk and do more).doc
- 全国高等医学院校大学生临床技能大赛总结(Summary of clinical skills competition among college students in China).doc
- 全复杂度介绍(Introduction to full complexity).doc
- 全套的第五套人民币防伪措施(A full set of fifth sets of RMB security measures).doc
- 全国护士资格考试试题(三) 专业实践能力试卷(National nurse qualification examination questions (three) professional practice ability test paper).doc
- 全国平面设计高级研修班讲座ibc(National advanced seminar on graphic design IBC).doc
- 全套魔法技巧。。(Full set of magic skills..).doc
- 全国百余县酝酿 撤县设市 专家 防一哄而上(The national hundred county brewing county to city experts anti herd).doc
- 全天88星座数据表(All day 88 constellation data table).doc
- 全息影像技术2(Holographic imaging technology 2).doc
- 全效学习七下语文(Total seven language learning).doc
文档评论(0)