D18. 函式库
#include<stdio.h> main(){ printf("Hello world.");}
开头的这个就是C标準函式库里的其中一个,如果没有在开头打上#include<stdio.h> ,就会出现错误讯息
包含在C标準函式库里面的函示:
<assert.h>
<ctype.h>
<errno.h>
<float.h>
<limits.h>
<locale.h>
<math.h>
<setjmp.h>
<signal.h>
<stdarg.h>
<stddef.h>
<stdio.h>
<stdlib.h>
<string.h>
<time.h>
而最常用的是<stdio.h>,stdio 就是指standard input & output(标準输入输出),原始码中如用到标準输入输出函式时,就要包含这个头档案,例如c语言中的 printf("%d",i); scanf("%d",&i);等函式。