This is boring. In fact, you can do some nice things to prove what is the class of functions you can compute with straight-line programs, and what you'd see if you did that is, it's not particularly interesting.
这很无聊,实际上,你可以通过做一些很有趣的事情,来证明你可以通过直线程序,来做很多功能,但是你也看到我们之前讲过的了,这不太有趣。
c point You can see inside of it, it's got a set of definitions for things like functions.
我会把它简短的命名为,你可以看到类的里面,有一个对于函数之类的东西的定义集。
What I'm going to do is I want to draw the two functions we just found and see what they look like.
下面我们绘制两个函数图像,看看图像是什么样的
But it turns out that as we'll see that functions absolutely take arguments, right?
但结果是我们将看到,函数绝对是有参数的,对不对?
He doesn't so much insist as you will see in your reading on the actual separation of functions of government putting them into separate hands.
但他其实并未坚持,如你们在阅读中会发现,政府的职权,是否真的分离,将权力切割开来。
And we'll see if you try to mess with our functions by providing a string when we want an int, or providing an int when we want a string, you may very well get yelled at and the user will have to retry.
我们可以看到,如果你尝试打乱我们的函数,当想要一个int数时我们提供sting型,或者,当想要一个sting数时我们提供int型,你可能会被吼叫,然后用户不得不重新尝试。
cs50 h It's not called standard io.h, it's called cs50.h. That's where the code we wrote for you will live and then we'll see how to do this in examples today onward but we wrote for you some tools, some functions that calls GetChar for get a character.
当然不是标准输入输出库了,而是叫做,这里面有一些我们写的代码,等一下我会举几个例子,我们写了一些函数,比如GetChar,意思是得到一个变量。
应用推荐