上一页 1 ··· 12 13 14 15 16
摘要: isalnum() 字母,数字isalpha() 字母isblank() 标准空格iscntrl() 控制符isdigit() 数字isgraph() 除空格外的可打印字符islower() 小写字母isprint() 可打印字符ispunct() 标点符号isspace() 空白字符isupper() 大写字母isxdigit() 十六进制字符tolower() 如果参数是大写,转换为小写,否则返回原值toupper() 如果参数是小写,转换为大写,否则返回原值 阅读全文
posted @ 2012-12-26 09:09 diablo大王 阅读(1695) 评论(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大王 阅读(150) 评论(0) 推荐(0) 编辑
摘要: char ca = getchar(); // scanf("%c",&ch);putchar(ca); // printf("%c",ch); 阅读全文
posted @ 2012-12-26 08:57 diablo大王 阅读(197) 评论(0) 推荐(0) 编辑
摘要: ()*(取指针的值)++,--,+,-,sizeof,!*,/,%+,-< > <= >=== !==sum += *value++;// *和++具有相同的优先级,运算时从右向左进行 *value++ 等同 *(value++) 阅读全文
posted @ 2012-12-26 08:50 diablo大王 阅读(149) 评论(0) 推荐(0) 编辑
摘要: ++,--的优先级很高,只有括号的优先级大于他们。X*Y++ 等于 X*(Y++) 阅读全文
posted @ 2012-12-25 15:22 diablo大王 阅读(504) 评论(0) 推荐(0) 编辑
摘要: %c,字符型%d,%i,有符号十进制%e,%f,%E,浮点型%o,无符号八进制%p,指针%s,字符串%u,无符号十进制%x,%X,十六进制%%,百分号 阅读全文
posted @ 2012-12-25 15:10 diablo大王 阅读(163) 评论(0) 推荐(0) 编辑
摘要: sizeof(),用于类型时必须使用括号,而用于变量时括号是可选的。 阅读全文
posted @ 2012-12-25 15:02 diablo大王 阅读(135) 评论(0) 推荐(0) 编辑
摘要: #include <string.h>int main(int argc, constchar * argv[]){ char name[40] = "yjdabc"; printf("name = %s,length = %lu",name,strlen(name)); return 0;}name = yjdabc, length = 6 阅读全文
posted @ 2012-12-25 14:57 diablo大王 阅读(468) 评论(0) 推荐(0) 编辑
摘要: int main(int argc, const char * argv[]){ int x = 100; printf("dec = %d; octal = %o; hex = %x\n",x,x,x); printf("dec = %d; octal = %#o; hex = %#x\n",x,x,x); printf("sizeof(int) = %lu",sizeof(int)); return 0;}dec = 100; octal = 144; hex = 64dec = 100; octal = 0144; hex = 阅读全文
posted @ 2012-12-25 14:29 diablo大王 阅读(2850) 评论(0) 推荐(0) 编辑
摘要: 在 项目的 compile sources 中引入 securityUtil.m文件。 阅读全文
posted @ 2012-12-25 10:37 diablo大王 阅读(229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16