精·第04章软件工程的详细设计.pptVIP

  • 2
  • 0
  • 约 53页
  • 2017-01-16 发布于北京
  • 举报
---- 多路选择结构 CASE OF case 变量名; WHEN case 条件1 SELECT 程序块/伪代码语句组; WHEN case 条件2 SELECT 程序块/伪代码语句组; … … DEFAULT: 缺省或错误case: 程序块/伪代码语句组; ENDCASE 4.3 软件详细设计工具 BEGIN Enter a vector Set Maximum to the value of the first element in the vector DO FOR each second one to the last IF value of element is greater than the Maximum value THEN Set Maximum to value of the element ENDIF ENDFOR Print the Maximum value END Input array A Max=A(1) DO FOR I=2 to N IF MaxA(I) Set Max=A(I) ENDIF ENDFOR Print Max 举

文档评论(0)

1亿VIP精品文档

相关文档