Use comment cards to gauge patrons’ reactions to your game program!
使用评论卡片收集读者对你的游戏项目的反应。
In this text, every program begins with a special comment called the program comment that describes the operation of the program as a whole.
本书当中,所有的程序都将以一段特别的注释开头,这段注释叫做程序注解,是用来整体描述这段程序的。
In this case, the program comment also provides credit for the original idea of the program.
在这个例子当中,程序注解还提供了程序的最初想法。
So when you're writing a program in this language and many others, if you wanna make a comment to yourself or for other people who are reading this with their TF or fellow colleagues, you use what are called comments.
当你用这样那样的语言写程序时,为了便于自己或他人,阅读我们写的代码,我们必须得做一些注解,这就是所谓的注释。
And for reference, incidentally, in case you ever forget what the point of some exercise was, I'll almost always comment the code up top with a quick sentence or two that reminds you what this program does.
顺便作为参考,为了避免我们可能忘记一些代码的意思,我通常会用一两个简单的句子,在上面作出注释,那样会提醒我们这个程序是干嘛的。
应用推荐