C语言中的include用法之一

下面是C语言的hello world ,

#include <stdio.h>
int main()
{
    
    
    printf("hi");
    return 0;
}

第一行的

#include 

看似无关紧要,但实际起到了引入头文件的作用
发挥了相当于java 与 python 中的import的作用
是C语言的预处理。

おすすめ

転載: blog.csdn.net/m0_49040755/article/details/121270751