首頁
程式語言
工具下載
學習範例
技術專區
相關書籍
原始碼程式範例
好站相報
技術論壇
易尋網
ASP空間租賃
汽車追蹤的第一個家
弘光科技大學
南開技術學院
巨匠電腦
買賣購物網
Life Light
遠距醫療網
清境民宿珂之幄
原始程式碼
#include <stdio.h> #include <conio.h> #include <process.h> /* ################################ program name: type.cpp author: Cat Tseng Date: 2006/7/18 ################################ */ void main(void) { FILE *fp1,*fp2; int ch; clrscr(); if ((fp1 = fopen("copyfile.cpp","r")) == NULL) { printf("Cannot find this file!!\n"); exit(1); } if ((fp2 = fopen("c:/test.txt","w")) == NULL) { printf("Cannot find this file!!\n"); exit(1); } while ((ch=getc(fp1)) != EOF) { printf("%c",ch); //printf("\n"); putc(ch, fp2); putc(ch, fp2); } fclose(fp1); fclose(fp2); getch(); }
1. 請點選此處複製以上資料
2. 請按
ctrl-c
複製到剪貼簿
3. 切換到ASP的原始內碼區
4. 請按
ctrl-v
貼上所有資料