摘要:
#include #define MAXLINE 1000int getline(char line[],int maxline);void copy(char to[],char from[]);int main(){ int len; int max; char line[MA... 阅读全文
摘要:
#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 ... 阅读全文
摘要:
#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... 阅读全文
摘要:
#include int main(){ int c; while((c = getchar()) != EOF) { if(c != '\n' && c != ' ' && c != '\t') { putchar(... 阅读全文
摘要:
#include int main(){ int lin = 0,wor = 0,cha = 0; int flag = 0; int c; while((c = getchar()) != EOF) { if(c == '\n') ... 阅读全文
摘要:
#include int main(){ int c; int flag = 0; while((c = getchar()) != EOF) { if(c == ' ') { if(flag == 0) ... 阅读全文
摘要:
#include int main(){ int spa = 0,lin = 0,tab = 0; int c; /* spa代表空格个数,tab代表制表符个数,lin代表换行符个数 */ while((c = getchar()) != EOF) { if... 阅读全文