目录
前言
相信大家学习c语言碰到了很多的函数,像printf,scanf等,这篇博客会讲一些别的函数,可能对于初学者会比较陌生。不过,陌生不要害怕,正因为陌生我们就可以学习它,让它变成我们熟悉的知识,那么我们就进步了!
一、islower,isupper,tolower,toupper
islower和isupper这两个是用来判断字符是否为小写或大写的,它们的头文件为<ctype.h>,
#include<stdio.h>
#include<ctype.h>
int main()
{
int n = isupper('u');
printf("%d", n);
return 0;
}
如上运用,如果为假函数便会返回0,如果为真,函数返回非0数。
tolower和