第5章详细设计(结构化).pptVIP

  • 8
  • 0
  • 约5.86千字
  • 约 86页
  • 2018-04-20 发布于河南
  • 举报
第5章详细设计(结构化)

32 示例 : 拼词检查程序 PROCEDURE spellcheck IS BEGIN split document into single words lood up words in dictionary display words which are not in dictionary create a new dictionary END spellcheck 33 5.3.4 PDL PDL的特点 提供全部结构化控制结构、数据说明和模块特征。 能对PDL正文进行结构分割,使之变得易于理解。 为了区别关键字,规定关键字一律大写,其它单词 一律小写。或者规定关键字加下划线,或者规定它 们为黑体字。 34 5.3.4 PDL 内语法使用自然语言来描述处理特性。内语法比较 灵活,只要写清楚就可以,不必考虑语法错,以利 于人们可把主要精力放在描述算法的逻辑上。 有数据说明机制,包括简单的(如标量和数组)与复 杂的(如链表和层次结构)的数据结构。 有子程序定义与调用机制,用以表达各种方式的接 口说明。 35 5.3.4 PDL 使用PDL语言,逐步求精: PROCEDURE spellcheck BEGIN --* split document into single words LOOP get next word add word to word l

文档评论(0)

1亿VIP精品文档

相关文档