[C语言]各头文件中的库函数
持续增添-ing
一、 include<stdio.h>
- printf();:输出打印
- scanf();:从缓冲区读入数据
- getchar();:从缓冲区读入一个字符
- putchar();:输出字符函数
二、include<string.h>
- strlen(字符串名):求字符串长度
- strcmp(字符串a,字符串b):比较字符串a和b,如果相等返回值0
三、#include<stdlib.h>
- rand():取一个任意数
- srand
- system():执行系统的命令
四、include<time.h>
五、include<math.h>
- sqrt(x):x开平方