精華區beta NAOE-87 關於我們 聯絡資訊
#include <stdio.h> #include <conio.h> int main(int argc,char **argv) { FILE *srcfile; char s[255]; int c; srcfile=fopen(argv[1],"r"); while ((c=fgetc(srcfile))!=EOF) { int i; for (i=1;i<=25;i++) { fgets(s,255,srcfile); puts(s); } while ((c=getch())==('0x0a'||'0x20')); } return 0; } 就這樣﹍﹍﹍簡單吧~~~ -- 給我記著! I'm a member of CKEISC 16th | National Taiwan University Department of Networking | Department of Naval Architecture | and Ocean Engineering twwang@ck.tp.edu.tw | twwang@linux.na.ntu.edu.tw -- ※ 發信站: 批踢踢實業坊(ptt.twbbs.org) ◆ From: IP072.dialup.nt