- 1、本文档共95页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
chapter 7 Writing the Programs程序的编写 SOFTWARE ENGINEERING 7.1Programming standards and procedures编程标准和过程 Reasons:Others are able to understand what you have written, why you have written it and how it fits in with their work. 让别人理解你写了什么,为什么写以及它同工作是如何配合的。 Software engineering standards 软件工程标准 Standards for you 个人的标准 Help you to organize your thoughts and avoid mistakes. Standardized documentation helps in locating faults and making changes, because it clarifies which sections of your program perform which functions.帮你组织思想,避免错误 。标准化的文档还有助于查找错误的位置并作出改动。 Help in translating designs to code. By structuring code according to standards, you maintain the correspondence between design components and code components. 有助 于你将设计转化成代码,维持设计组件和代码组件之间的一 致性。 Standards for others 其他人的标准 You organize, format, and document your code to make it easy for other to understand what it does and how it works. 组织、排版及编写代码文档,使其他人容 易理解软件做什么及如何运行。 Matching design with implementation设计与实现的匹配 The most critical standard is the need for a direct correspondence between the program design components and the program code components.最关键的标准就是需要在程序设计组件和程序代码组件之间有直接的对应关系. (系统的一般目的是在整个软件生命周期中保持一致,设计和代码之间的一致性是基本问题.) Standard format for comments注释的标准格式 /* Statement of function: 函数功能 * Component name: 组件名 * Programmer: 程序员 * Version: 版本 * Procedure Invocation: 过程调用 * Input Parameters: 输入参数 * Output Parameters: 输出参数 */ 7.2 Programming Guidelines 编程指导方针 Major aspects of programming编程的主要方面: control structures 控制结构 Algorithms 算法 data structures 数据结构 Control structures 控制结构 Many of control structures for a component are suggested by the architecture and design. It is important for your program structure to reflect the design’s control structure.体系结构和设计提出了很多组件的控制结构,程序结构反映设计的控制结构是非常重要的。 Many guidelines and standards suggest that the code be written so you can read a component easily from the top down.许多指导方针和标准建
您可能关注的文档
- 河北工程大学《理论力学精品教学》L12.pptx
- 河北工程大学《理论力学精品教学》L13.pptx
- 河北工程大学《理论力学精品教学》L14.pptx
- 河北工程大学《理论力学精品教学》L15.pptx
- 河北工程大学《理论力学精品教学》L16.pptx
- 河北工程大学《理论力学精品教学》L17.pptx
- 河北工程大学《理论力学精品教学》L18.pptx
- 河北工程大学《理论力学精品教学》L19.pptx
- 河北工程大学《理论力学精品教学》LF1.pptx
- 河北工程大学《理论力学精品教学》LF2.pptx
- 2025AACR十大热门靶点推荐和解读报告52页.docx
- 财务部管理报表.xlsx
- 高中物理新人教版选修3-1课件第二章恒定电流第7节闭合电路欧姆定律.ppt
- 第三单元知识梳理(课件)-三年级语文下册单元复习(部编版).pptx
- 俄罗斯知识点训练课件-七年级地理下学期人教版(2024).pptx
- 课外古诗词诵读龟虽寿-八年级语文上学期课内课件(统编版).pptx
- 高三语文二轮复习课件第七部分实用类文本阅读7.2.1.ppt
- 高考物理人教版一轮复习课件第4章第3讲圆周运动.ppt
- 高考英语一轮复习课件53Lifeinthefuture.ppt
- 2025-2030衣柜行业风险投资发展分析及投资融资策略研究报告.docx
文档评论(0)