#include <stdio.h>
#include <ctype.h>
int main()
{
char ch;
printf("input a character:");//输入一个字符
scanf_s("%c", &ch);
if (isalnum(ch))//判断输入字符是否为字母或数字
{
printf("%c is alnum.", ch);
}
else
{
printf("%c is not alnum.", ch);
}
return 0;
}
标签:ch,isalnum,字母,引用,printf,include,alnum
From: https://www.cnblogs.com/linhongyu0090/p/17165873.html