...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 巢套块IF叙述 ; 嵌套分程序如果语句
block handling statement 块处置叙述
block of assignment statement [计] 赋值语句块
block if statement [计] 块如果语句
While the language enables you to use simple, nonblock statements as the body of these constructs, you should always use a block statement in these situations.
尽管语言本身可以让你使用简单、非块状的语句作为这些结构的主体,但你还是应该经常使用块状语句。
The statement clearly was intended to caution Seoul against attempting to block the council's action again.
很显然,这份声明用意在于警告首尔别再试图阻止委员会的行动。
A more substantial limitation on the source code is that there's no way to refer to local variables declared outside the statement or block being added.
对于源代码的一项更实质性的限制是不能引用在所添加的声明或者块外声明的局部变量。
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是,用于格式化输出。
应用推荐