...Ada 里选择结构的if、case 语句和循环结构的 loop 语句及其变种,并介绍顺序结构中以前没讲过的 null 和块语句(block statement),最后是比较有争议的 goto 语句—好像每本教科书上都骂它,说它打破了程序的良好结构。
基于38个网页-相关网页
Statement Block 语句块 ; 代码语句块
Block Heading Statement 分程序首部叙述 ; 区块标头叙述
block initial statement 块初始叙述 ; 信息组起始语句
block data statement [计] 数据块语句
block terminal statement 程序块终端语句
nested block IF statement 嵌套分程序如果语句
block handling statement 块处置叙述
block of assignment statement [计] 赋值语句块
block if statement [计] 块如果语句
The cookies were going back and forth and back and forth and the hearts up and down, well, this thing that we had that called a loop last week with a forever block with a statement inside of it is simply gonna look a little something like this.
这些饼干人来来回回的移动,还有这些爱心们上上下下地漂浮,都用到我们上周提到过的循环结构,当然还有个声明在里面,就有点像屏幕上,显示的这样。
But if you avoid all of these minutia and focus really just on the idea, it looks like what was a blue say block, a so called statement, is now going to be something called printf where the F happens to stand for formatted.
但是如果你抛开所有这些繁琐的细节,把注意力集中到,它的编程思想,那么它只不过一个蓝色的say程序块,是一个声明,即所谓的printf函数,其中的f是,用于格式化输出。
应用推荐