精華區beta Programming 關於我們 聯絡資訊
※ 引述《brian9999.bbs@ptt.cc (Brlanbaby)》之銘言: > 我使用 > FILE *input; > char temp; > . > fscanf(input,"%c",&temp); > 來讀取檔案....但是一些特殊字元像是換行符號(0D)卻會被跳過而不讀 scanf()是formatted input 你要用那些unformatted input的函數 例如fgets(), fgetc()這些 詳情參考 http://www.cplusplus.com/ref/cstdio/ -- -- ┌─────KKCITY─────┐KKMAN團隊 全新力作 ◎◎KKBOX◎◎ bbs.kkcity.com.tw 知名歌手通通都有 所有新歌想聽就聽 └──From:218.160.87.93 ──┘※※ 內容豐富多元的線上音樂台 ※※ --