当一个系统结构建模时,显示例子类实例有时候是有用的。
When modeling a system's structure it is sometimes useful to show example instances of the classes.
在图5中显示例子中,这个调度测试5个用户一起运行,并且有10次迭代——这将显示在General标签中。
In the example shown in Figure 5, the schedule test was run with 5 users and 10 iterations - this would be shown on the General TAB.
为了使我们的示例更加完整,我们创建另外一个例子,显示所有接收通知的位置。
To drive the example home we will create another example to display all positions that are set up to receive notices.
And when I'm done with the whole thing, before I end the increment of the variable, you know, when I'm done, I'm just not returning anything out.
在循环外面初始化它,然后做一个终结测试,然后在循环内部有一个指令集,在这个例子中,就是对余数做检查,然后显示信息,当我完成了整个循环。
In this case it says, this is a syntax error, and it's actually highlighting where it came from so I can go back and fix it.
在这个例子中它显示这是个语法错误,并且会高亮显示它的位置,以便于我去修改。
> So this thing here, when green flag clicked say, oh, hi world, this was perhaps the simplest program we could write in Scratch.
>,我们先看看这个例子,“点击绿旗“下面显示“,这也许是我们用Scratch软件写出的最简单的,程序了。
应用推荐