c++或c或c#判断字母,数字,标点符号,空格函数

2024-10-13 01:28:30

c++或c#中要求引用 #include <cctype>

c中引用#include<ctype.h>

判断字母数字函数 isalnum()

判断字母函数 isalpha()

判断数字函数 isdigit()

判断空格 isspace()

判断标点符号 ispunct()

转换成小写 tolower()

转换成大写 toupper()

等,还有判断打印字符等

c++或c或c#判断字母,数字,标点符号,空格函数

猜你喜欢