'#include< stdio.h>'是什么确实在C程序中 [英] What does '#include <stdio.h>' really do in a C program
问题描述
我是C编程的新手,我正在编写一些简单的程序"Hello world"风格.
在所有这些程序中,我都将#include< stdio.h>
放在顶部,但是我不确定这到底意味着什么.我搜索了一下,发现stdio.h是一个包含预处理程序命令的文件,但是什么是预处理程序?我以为在编写代码时,我会对其进行编译并将代码转换为计算机"可以读取然后可以运行的形式.有人可以给我解释一下此命令的用法吗?
它将查找 I am new to c programming and I was coding some simple programs "Hello world" style. In all of these programs I put It looks for the 这篇关于'#include< stdio.h>'是什么确实在C程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! stdio.h
文件,并有效地将其复制粘贴到此 #include 代码>语句.该文件包含函数的所谓函数原型,例如
printf()
, scanf()
等,以便编译器知道它们的参数和返回值./p>#include<stdio.h>
in the top but I am not sure what this means exactly. I googled it and I found that stdio.h is a file that has commands for the preprocessor, but what is a preprocessor? I thought when I write code, I compile it and my code transforms to a form that a "computer" can read and then I can run it. Can somebody explain to me what the usage of this command is?stdio.h
file and effectively copy-pastes it in the place of this #include
statements. This file contains so-called function prototypes of functions such as printf()
, scanf()
, ... so that compiler knows what are their parameters and return values.