摘要: #include #include #include int main(){ int n = 0; while (scanf("%d",&n) != EOF && n!= 0) { char str[1000][16];//只对各不相同的颜色进行存储 memset(... 阅读全文
posted @ 2015-05-17 16:38 周鶏 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include #include #include void add(char *a, char *b,char *sum)//字符串a要比字符串b长,或相等{ int len_a = strlen(a); int len_b = strlen(b); char tmp[len_... 阅读全文
posted @ 2015-05-17 16:37 周鶏 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1.2.1#include #include #define up 6#define down 4#define stop 5int main(int argc, const char * argv[]){ int n = 0; while (scanf("%d",&n) != EOF)... 阅读全文
posted @ 2015-05-17 16:35 周鶏 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1.1.1#include #include int main(int argc, const char * argv[]){ int a,b; while (scanf("%d%d",&a,&b) != EOF) { printf("%d\n",a+b); }... 阅读全文
posted @ 2015-05-17 16:31 周鶏 阅读(153) 评论(0) 推荐(0) 编辑