printf That's not actually where someone implemented print F and related functions, rather, in dot H files, by convention, are prototypes.
那实际不是有某人在哪里执行,相关函数,而是在,h文件中,按照惯例,它们是函数原型。
For some reason, at the top of this file, I've also included what I've called a function prototype.
因为一些原因,在这个文件顶端,我包含了一个函数原型。
Why is this much nice? Well, that's a handy piece of code. Because imagine I've got that now, and I can now store that away in some file name, input dot p y, and import into every one of my procedure functions, pardon me, my files of procedures, because it's a standard way of now giving me the input.
为什么这样很好呢?,这是一段很好用的代码,因为想象下如果我有了这段代码,我能把它用某个文件名保存起来,后缀是。py,导入到所有的处理函数中,抱歉,我的处理文件,因为这是一个标准的输入方法。
It's instead outside of them and, by convention, at the top of the file so that I can access it anywhere, whether or not this is a good thing, remains to be seen.
它在函数的外面,按照惯例,在文件的顶端,所以我可以在任何地方使用它,不管这是不是好事情,拭目以待。
In a .h file, it's generally the names of functions other people wrote.
在头文件里,只有一些函数名。
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函数。
It's kind of a stupid lack of feature that this is the case, but notice that here is main, at the top of my file.
这是有点笨的,缺少特征的,就是这种情况,但是注意这里是main函数,在我的文件的顶端。
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的函数库,因为我包含了所谓的头文件。
应用推荐