算法竞赛中常用头文件及其函数
文章目录
1、ctype.h
isdigit();
isalpha();
toupper();
tolower();
2、time.h
clock();
3、string.h
strcmp();
strlen();
strcpy();
strcat();
memcpy();//对数字的处理
memset();
4、math.h
hypot(double,double);//计算三角形的斜边长
sqrt(double);
sin();
cos();
pow();
5、stdio.h
printf/scanf
fopen,freopen,fclose
getchar,fgets
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论