摘要: #include #define MAXLINE 1000int getline(char line[],int maxline);void copy(char to[],char from[]);int main(){ int len; int max; char line[MA... 阅读全文
posted @ 2014-10-27 17:45 司空格子Ored 阅读(258) 评论(0) 推荐(0) 编辑
摘要: #include #define Num 20int power(int base,int n){ int p = 1; int i; for(i = 0;i #define Num 20int power(int a,int b);int main(){ int base ... 阅读全文
posted @ 2014-10-27 15:33 司空格子Ored 阅读(257) 评论(0) 推荐(0) 编辑
摘要: #include #define Num 10int main(){ int wor = 0; int arr[Num] = {0}; int c,count = 0,i; int flag = 0; printf("Please input at most 10 wo... 阅读全文
posted @ 2014-10-27 15:09 司空格子Ored 阅读(198) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int c; while((c = getchar()) != EOF) { if(c != '\n' && c != ' ' && c != '\t') { putchar(... 阅读全文
posted @ 2014-10-27 14:36 司空格子Ored 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int lin = 0,wor = 0,cha = 0; int flag = 0; int c; while((c = getchar()) != EOF) { if(c == '\n') ... 阅读全文
posted @ 2014-10-27 14:28 司空格子Ored 阅读(234) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int c; int flag = 0; while((c = getchar()) != EOF) { if(c == ' ') { if(flag == 0) ... 阅读全文
posted @ 2014-10-27 09:24 司空格子Ored 阅读(362) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int spa = 0,lin = 0,tab = 0; int c; /* spa代表空格个数,tab代表制表符个数,lin代表换行符个数 */ while((c = getchar()) != EOF) { if... 阅读全文
posted @ 2014-10-27 09:10 司空格子Ored 阅读(357) 评论(0) 推荐(0) 编辑