• Same way that I have multiplication or division as a primitive, functions are going to give me, or somebody else who wrote them for me as part of a library, a new primitive that I'm going to be able to use.

    我在用乘法或者除法当做原语,这些函数,或者别人写程序中的函数,将会给我返回一个,我能使用的新原语。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • There's been a lot of work done on these over the years, but in fact, it's pretty hard to invent a good hash function. So my advice to you is, if you want to use something was a hash, go to a library. Look up a good hash function.

    已经做过了很多的尝试和努力,但是事实是,很难发明出一个好的哈希函数,所以我给你们的建议是,如果你们想使用哈希功能,到函数中查找一个好的哈希函数

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • At the top, I've got some CS50 Library going on, argv standard I/O library; I don't bother mentioning argc or argv because I'm not going to use them in this program.

    在顶端,我使用了CS50函数,标准输入输出,我没有提到argc或者,因为我不会在这个程序中使用它们。

    哈佛公开课 - 计算机科学课程节选

  • But long story short, if I want to use a function called sleep, -- the reason I, the programmer, knew to use that library -- -- that header at the top -- because it told me to in this little synopsis.

    但长话短说,如果我想要用一个叫做sleep的功能,我作为程序员知道使用那个函数-,上面的标题-,因为在这个小的大纲中它告诉我。

    哈佛公开课 - 计算机科学课程节选

  • It's defined in CS50's library; its sole purpose in life is to ask the user for a floating point value and return it.

    它被定义在CS50的函数中,它的唯一目的是,向用户询问一个浮点数的值,然后返回它。

    哈佛公开课 - 计算机科学课程节选

  • So I could -- and the hint here is that looks like you probably do want to use CS50's library because I've included the so-called header file for it.

    所以我可以--这里的提示看起来好像,你可能的确想使用CS50的函数,因为我包含了所谓的头文件。

    哈佛公开课 - 计算机科学课程节选

  • include stdio h The next line of code says include standard io.h which just as a little sanity check contains among other things, printf.

    接着的一行代码写着,这个文件包含一些我们常用的函数,譬如,printf函数

    哈佛公开课 - 计算机科学课程节选

  • No. So we deliberately, in CS50's library, named these functions consistent with their behavior.

    不行,所以我们故意在CS50的函数中,根据函数的作用来给他们命名。

    哈佛公开课 - 计算机科学课程节选

  • The standard library, that first line of code, it's not strictly necessary but any time you use a function, a tool that someone else wrote that lives in that so called library, you do need that include line as we'll see.

    标准库函数--第一行代码,严格来说,不是每次都要写的,但是一旦你调用某个别人写,的函数,而这个函数又恰巧位于标准里面,你就要像我们看到的这样,把它include进去。

    哈佛公开课 - 计算机科学课程节选

  • And if you don't include it, GCC, the compiler will yell at you.

    如果你没有include这个库函数,GCC的时候,编译器就会报错。

    哈佛公开课 - 计算机科学课程节选

  • Well, remember from Wednesday we introduced CS50's library.

    好的,请记住从周三开始我们介绍了CS50的函数

    哈佛公开课 - 计算机科学课程节选

  • GetInt So next I cull the CS50 function called GetInt.

    所以接下来我挑选CS50函数中的函数

    哈佛公开课 - 计算机科学课程节选

  • We put it there via the CS50 library.

    我们把它放在CS50,函数中。

    哈佛公开课 - 计算机科学课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定