> That lets the compiler know that you want to use some actual compiled code from that library.
>,那是告诉编译器我们想要在程序库中,使用一些当前的编译后的代码。
My other roommate is named Cooper Lewis, who is actually going to play Hamlet in that production.
我的另一个室友叫库伯·路易斯,他会在那场戏剧演出中扮演哈姆雷特。
He defeated the Persian Army in Asia Minor at Granicus, the Battle of Granicus, in 334.
他在小亚细亚的格拉尼库斯击败波斯军队,也就是公元前334年的格拉尼库斯河战役。
But it turns out that because the Standard I/O Library is -lstdio so common they don't force people to type this all day long because it's just so commonly used.
由于大家都会用到标准输入输出库,因此我们不要求每次都在后面添上,可以省略。
You've got great grain fields out there in Syracuse.
你在锡拉库萨有一大片粮田
If you take in more calories than you consume, it gets stored in the fat cells, that's the energy bank that you can draw upon if you don't have enough food and starvation or famine were an issue.
如果你摄入的热量超过消耗的,热量就会存储在脂肪细胞中,这就是能量库,你可以在,食物不够以及饥饿或饥荒的时候利用它
It's in the CCL collection.
在CCL的收藏中,那是耶鲁大学的高流通库。
This is a-- somewhat graphical library that allows me to display graphics on the screen.
这是一个--绘画用的库,可以让我们在屏幕上画图案。
Why not? These guys that have gone out, let us say to Syracuse, they are your people, they have relatives back home, they have friends back home, it is natural--oh by the way, they're accustomed to worship the gods in the same way that the Corinthians do.
为什么呢,虽然移民已经离家,比如说他们去了锡拉库萨,但他们在家乡有仍有亲朋好友,这很常见,顺道一提,他们敬神的方式,跟科林斯人相同
The bits, the zeros and ones that compose the library are actually - in that file called cs50.c but those bits live or-- even that's a white lie.
这些构成该库的比特--0啊1啊,却是在cs50,c文件里,这些源代码-,可以说是根本不存在。
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的函数库中,它的唯一目的是,向用户询问一个浮点数的值,然后返回它。
- Well -- and I'll fix this blue next time -- I'm first telling the compiler I need access to the standard io library because printf is declared there.
哦!--下次我把这个字体颜色改成蓝色的-,我先告诉编译器--我需要使用,标准输入输出库,因为printf在那个库里面申明的。
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或者,因为我不会在这个程序中使用它们。
No. So we deliberately, in CS50's library, named these functions consistent with their behavior.
不行,所以我们故意在CS50的函数库中,根据函数的作用来给他们命名。
Whereas CS50 is not nearly as popular a library in the world, -lcs50 and so you'll have to explicitly say dash L CS50.
但是CS50库就没那么出名了,所以你必须在后面清清楚楚地添上。
应用推荐