摘要: 用了库函数strrev(*str),正确的结果,却是compile error,不能AC!!!!!!! 阅读全文
posted @ 2017-03-06 12:11 贱人郭 阅读(427) 评论(0) 推荐(0) 编辑
摘要: #include #include #include int main() { char *str=(char*)malloc (sizeof(char));//char*之前必须分配内存 while(scanf("%s",str)!=EOF)//注意此地不能用&str { char tem; int len =strlen(str); ... 阅读全文
posted @ 2017-03-06 11:57 贱人郭 阅读(395) 评论(0) 推荐(0) 编辑
摘要: #include int main() { char ch; while(true) { int z_cnt=0,o_cnt=0, j_cnt=0; while(scanf("%c",&ch)!=EOF) { if(ch=='E') return 0; if (ch=='\n') break;/... 阅读全文
posted @ 2017-03-06 11:32 贱人郭 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int n; while(scanf("%d",&n)!=EOF) { while(n--) { int a,b,c,d; scanf("%d.%d.%d.%d",&a,&b,&c,&d); if ((a>-1 && a-1... 阅读全文
posted @ 2017-03-06 11:05 贱人郭 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 关于接收字符,我用的是输入到‘\0’就结束的策略; 其实,我最中意的是这种代码:转载自http://blog.csdn.net/mnmlist/article/details/25185563 阅读全文
posted @ 2017-03-06 11:03 贱人郭 阅读(182) 评论(0) 推荐(0) 编辑
摘要: AC:#include<stdio.h> 后来又写了一次AC: 阅读全文
posted @ 2017-03-03 17:51 贱人郭 阅读(172) 评论(0) 推荐(0) 编辑
摘要: AC: 阅读全文
posted @ 2017-03-02 12:33 贱人郭 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 主要就是输入一长串的字符,如何从中摘出单个的字符换成数字: AC: /**********************************/令人头疼的是如何输入这些: one + two =three four + five six =zero seven + eight nine =zero + 阅读全文
posted @ 2017-03-02 11:14 贱人郭 阅读(194) 评论(0) 推荐(0) 编辑
摘要: AC: 阅读全文
posted @ 2017-03-01 21:44 贱人郭 阅读(134) 评论(0) 推荐(0) 编辑
摘要: AC:让n减去每个月的天数来计数 阅读全文
posted @ 2017-03-01 20:38 贱人郭 阅读(1143) 评论(0) 推荐(0) 编辑