摘要: /* 给定一个字符串(暂时我还无法确定这个是叫做字符 串,还是为储存的变量为 char 类型的数组),输出 所有长度至少为2的回文子串。回文子串即从左往右输 出和从右往左输出结果是的字符串。 比如:qweewq都是回文字符串。 */ #include #include int main() { char c[505]; int n; scanf("%s",c);... 阅读全文
posted @ 2017-03-11 12:41 荒唐了年少 阅读(2344) 评论(0) 推荐(0) 编辑
摘要: // break 在循环中的功能测试 # include <stdio.h> int main(void){ int i, j; for (i = 0; i<3; ++i) { j = i; break; printf("HHH\n"); } printf("%d", j); return 0; } 阅读全文
posted @ 2017-03-11 10:38 荒唐了年少 阅读(258) 评论(0) 推荐(0) 编辑