桑海

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年11月7日

摘要: 题目描述://--------------------C_Style---------------- #include<stdio.h> #include<string.h> int main() { char word[100]; scanf("%s", word); int len = strlen(word); for(int i = 1; i <= len; ++i) if(len % i == 0) { int ok = 1; for(int j = i; j <... 阅读全文
posted @ 2012-11-07 20:47 桑海 阅读(239) 评论(0) 推荐(0) 编辑

摘要: 1 //------------C_Style----------------- 2 3 #include<stdio.h> 4 5 void main() 6 { 7 char *str = "`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./"; 8 int c; 9 printf("Enter a string(Ctr+Z to end):\n");10 while((c = getchar()) != EOF)11 {12 for(int ix = 1; str[ix] & 阅读全文
posted @ 2012-11-07 19:38 桑海 阅读(304) 评论(0) 推荐(0) 编辑