1选择结构.pptVIP

  • 4
  • 0
  • 约7.8千字
  • 约 51页
  • 2017-05-27 发布于河南
  • 举报
1选择结构

Tutorial 4 Tutorial 4 The selection structure 一、Programming Structures程序结构 Computer scientists have defined three constructs for a structured program. Sequence 顺序结构 Selection - (Decision) 选择(分支)结构 Repetition 循环结构 1. Sequence顺序结构 program instructions are processed, one after another, in the order in which they appear in the program 语句按照出现的先后顺序一条条执行 Private Sub Form_Click() frmGame.Refresh frmGame.FontName = 宋体 frmGame.FontSize = 10 frmGame.Print 游戏开始了 frmGame.FontName = 华文行楷 frmGame.FontSize = 15 frmGame.Print 欢迎进入俄罗斯方块游戏 End Sub 2. Selection Structure选择结构 程序设计时常常需要对给定的条件进行分析、比较和判断,并根据判断的结果执行不

文档评论(0)

1亿VIP精品文档

相关文档