精華區beta NAOE-87 關於我們 聯絡資訊
#include <stdio.h> int main(int argc,char **argv) { FILE *srcfile,*detfile; char s[255]; int c; srcfile=fopen(argv[1],"r"); detfile=fopen(argv[2],"w"); while ((c=fgetc(srcfile))!=EOF) { fgets(s,255,srcfile); fputs(s,detfile); } fclose(srcfile); fclose(detfile); 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