一般地,在C语言或C++中,会把用来#include的文件的扩展名叫 .h,称其为头文件。#include文件的目的就是把多个编译单元(也就是c或者cpp文件)公用的内容,单独放在一个文件里减少整体代码尺寸;或者提供跨工程公共代码。在现行的c++版本中,应用这个头文件应是#include
For this to compile, you'll want to add an include statement as well for stdio.h.
为了正常编译,你会需要添加一个include stdio . h的声明。
An example of a library function that does have an associated system call is the fopen function declared in stdio.h.
有相关系统调用的库函数的一个示例是stdio . h中声明的fopen函数。
It returns NULL, defined in stdio.h, for either error or EOF [end-of-file]; after the loop, we check for which one occurred.
对于错误或EOF[文件结束],它都返回NULL,这是在stdio . h中定义的;循环结束后,我们会检查究竟是哪种情况。
stdio h It pretty much means open this file, standard IO dot H and just paste its contents right here.
它的大致上的意思是打开这个文件,然后把它的内容粘贴在那里。
include stdio h Well, remember this line; include standard IO dot H.
好的,请记住这一行。
stdio h This file here is called standard I/O or stdio.h and this is just another text file someone else wrote many years ago and by using that line of code there, I'm telling the computer, give me acces to this code that this other person wrote that's in that file.
在这里的头文件称为标准输入输出文件或,这是由某位前人编写的文本文件,我们只需要刚才所述的一行代码,就能告诉电脑,让我连接到,这个前人在那个文件中写的代码。
应用推荐