摘要:
isalnum() 字母,数字isalpha() 字母isblank() 标准空格iscntrl() 控制符isdigit() 数字isgraph() 除空格外的可打印字符islower() 小写字母isprint() 可打印字符ispunct() 标点符号isspace() 空白字符isupper() 大写字母isxdigit() 十六进制字符tolower() 如果参数是大写,转换为小写,否则返回原值toupper() 如果参数是小写,转换为大写,否则返回原值 阅读全文
posted @ 2012-12-26 09:09
diablo大王
阅读(1723)
评论(0)
推荐(0)
摘要:
#include <stdio.h>#include <ctype.h> // 包括字符处理函数int main(int argc, const char * argv[]){ char ch; while ((ch = getchar()) != '\n') { if(isalpha(ch)) putchar(ch+1); else putchar(ch); } putchar(ch); return 0;}yjdabc ddd !! %dddzkebcd eee !! %eee 阅读全文
posted @ 2012-12-26 09:03
diablo大王
阅读(156)
评论(0)
推荐(0)
摘要:
char ca = getchar(); // scanf("%c",&ch);putchar(ca); // printf("%c",ch); 阅读全文
posted @ 2012-12-26 08:57
diablo大王
阅读(214)
评论(0)
推荐(0)
摘要:
()*(取指针的值)++,--,+,-,sizeof,!*,/,%+,-< > <= >=== !==sum += *value++;// *和++具有相同的优先级,运算时从右向左进行 *value++ 等同 *(value++) 阅读全文
posted @ 2012-12-26 08:50
diablo大王
阅读(159)
评论(0)
推荐(0)

浙公网安备 33010602011771号