c++ 中的特殊判断

今天刚学的一些知识

  #include<cctype> //在这个函数库中。

  isalpha 判断 字符   ch  是否为 字母 。if (是) 返回 非0,反之

  isdigit   判断 字符  ch 是否 为  数字
  isprint  判断 是否为可打印的字符。
  toupper  是将小写字母转换为大写字母,返回值是大写字母
  tolower   是将大写字母转换为小写字母,返回值是小写字母。


猜你喜欢

转载自blog.csdn.net/kidsummer/article/details/78797941