注意,清单代码换行是为了适应页面宽度。
清单4显示了一个典型的消息传递事件,即发布拍卖系统中的一个新的高投标通知和产生该事件的代码。
Listing 4 shows a typical messaging event, posting notification of a new high bid in an auction system, and the code that generates it.
样本代码清单:即本文中所讨论的样本代码清单。
Sample code listings: Sample code listings that are discussed in this article.
But what looks like this orange block as of now in Scratch, add orange to your so called inventory, well, it's gonna take at least two lines of code in C to actually create the inventory array with this first line and then put something like the word orange inside of it.
就好比Scratch里面橘色的这一块,把“桔子“加到所谓的“清单“里面去,在C语言中至少需要两行代码来实现,第一行代码创建一个货单数组,第二行就需要把“桔子“放进去。
应用推荐