摘要: 一次AC,代码写的很烂,全挤在main里了,不过思路还是很清晰的有个问题:1.line1的最后没有回车 line2却有 2.fgets对回车符的处理很奇怪 有空研究下#include <cstdio>#include <cstdlib>#include <cstring>int findchr(char *a,char sign,int start){ for(int i=start;i<1000;i++) if(a[i]==sign) return i;}void printstr(char *a,int begin,int end){ for(in 阅读全文
posted @ 2012-12-04 17:57 Wxy191 阅读(210) 评论(0) 推荐(0) 编辑