Right. If you look at the rest of that code, gee, it looks a lot like what I had elsewhere.
好了如果你看看剩下的代码,天呐,看上去就像我在别的地方写过的。
You answered that you majored in course 2. It sounds like a secret code to outsiders.
你刚才回答你的专业是课程2。这在外人听起来就像是秘密代码一样。
We won't make you write dramas like Pirandello, but we're going to try make you at least write good code.
我们的函数中的东西,我们不会让你去写皮兰德娄的荒诞剧,但是我们会教你写漂亮的代码。
- Writing code that just looks-- I'm not even sure what this is supposed to look like, a little flower or pinwheel or something like that.
这代码写出来有点像-,我不确定这像什么,像朵花,或纸风车,或其他什么东西。
One of the things we talk about is like developing a code of ethics
我们经常谈论的就是要制定一套行为准则,
or whatever. Like, you know, you're speaking the secret code,
好像你在说密码一样,
Give you some examples. What have we talked about? We've talked about things like using comments to highlight what you're doing in the code, to make it easier to debug.
给大家举些例子,我们一直在强调什么来着?,我们讲过要用注释来说明,你在代码中进行的操作,以便于调试。
You write the source code, the stuff that looks like this and then you save your file, and now you just have a text file.
比如你们写出像这样的源代码后,保存,你将会得到一个文本文件。
> This is what the code looks like.
>,代码看起来是这样的。
Why are you, like, writing out code?
你们为什么写代码?
This chart, very boring and uninteresting but useful to say there are very well defined rules as to when you're writing code, what operators, like what syntax should get evaluated first.
这个图表,看起来很烦,很无趣,但是它很有用,有非常明确的规定,譬如,当你写代码时,就会涉及操作符的优先级。
I would like you to look at this piece of code right here called isPalindrome.
我将会输入一个字符串,命名为s,并局部赋值。
Well, what is code like that from the world of Scratch gonna look like?
那么像Scratch那样的代码,长啥样子呢?
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语言中至少需要两行代码来实现,第一行代码创建一个货单数组,第二行就需要把“桔子“放进去。
And you can write your source code in it but to compile something you don't run a command like GCC and then the name of the file, you instead click a button.
你们可以在上面写源代码,如果要编译的话,不用像GCC这样要输入命令,文件名,只需点击按钮就可以了。
应用推荐