预处理指令 #include 有两种形式:
1、文件名在尖括号内:在编译器包含目录搜索文件,如: #include <stdio.h>
2、文件名在双引号内:先在当前目录搜索文件,若不存在再去编译器包含目录搜索,如:#include "print.c"
对于stdio.h头文件,一般由编译器自带,因此用 <stdio.h>直接在编译器包含目录搜索此文件
//#include <stdio.h> //在编译器目录查找stdio.h头文件
#include "stdio.h" //先在当前目录查找、若找不到再去编译器目录查找
//#include "print.h"
/*
时间:2022-05-16 19:03
作者:sgbl888
功能:预处理指令include
知识点:
1、include <头文件> 用尖括号的是在编译器的包含目录搜索 头文件
2、include "头文件" 用双引号的是先在当前目录搜索,若找不到再到编译器包含目录搜索 头文件
3、头文件只用来 声明的,没有具体的实现
*/
int main(){
printf("hello world\n");
return 0;
}