摘要: /*this is version_2*/#include <stdio.h>#define PAGELEN 24#define LINELEN 80void do_more(FILE *);int see_more(FILE *);int main(int argc, char *argv[]){ FILE *fp; if(argc == 1) do_more(stdin); else while( --argc ) { if((fp = fopen(*++argv, "r")) != NULL) { do_more(fp); fclose(fp); } e. 阅读全文
posted @ 2013-03-17 23:09 Auris 阅读(280) 评论(0) 推荐(0) 编辑
摘要: /*this is verson_1*/#include <stdio.h>#define PAGELEN 10#define LINELEN 80void do_more(FILE *);int see_more();int main(int argc, char *argv[]){ FILE *fp; if(argc == 1) { do_more(stdin); } else { while(--argc) if((fp = fopen(*++argv, "r")) != NULL) { do_more(fp); fclose(fp); } else .. 阅读全文
posted @ 2013-03-17 23:07 Auris 阅读(262) 评论(0) 推荐(1) 编辑