[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开平方

六、include<windows.h>


版权声明:本文为weixin_73833411原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。