1. 首页
  2. 课程学习
  3. C++/C
  4. C语言常用头文件、位运算、SetConsoleTextAttribute()函数.docx

C语言常用头文件、位运算、SetConsoleTextAttribute()函数.docx

上传者: 2020-05-22 22:43:34上传 DOCX文件 13.77KB 热度 31次
头文件 stdio.h scanf、printf getchar、putchar gets、puts stdlib.h rand()%a+b:产生0~32767的随机数,a为范围,b为范围起始值,即产生b~b+a-1的随机数。 srand(随机种子):如srand(time(0))。 malloc(8)、calloc(10,sizeof(int))、realloc(指针变量,字节数)、free(fp) exit() time.h time(0)与time(NULL)作为随机种子。 string.h strlen("car")
下载地址
用户评论