主題
:
請問C++的開啟檔案
瀏覽單個文章
capitalm
Major Member
加入日期: Jun 2003
您的住址: where the light is
文章: 271
引用:
作者
沐風之羽
書本上面寫著...
---
ifstream 輸入物件; //建立輸入檔案物件
ofstream 輸出物件; //建立輸出檔案物件
fstream 輸出入物件; //建立輸入輸出檔案物件
---
我有個疑點, 為什麼建立文字檔還要分輸入/ 輸出/ 輸入輸出三種類型呢?
看一下
http://www.cplusplus.com/ref/iostream/fstream/
http://www.cplusplus.com/ref/iostream/ofstream/
http://www.cplusplus.com/ref/iostream/ifstream/
他們繼承的來源不同
2005-08-21, 10:02 PM #
3
capitalm
瀏覽公開訊息
傳送私人訊息給capitalm
查詢capitalm發表的更多文章
增加 capitalm 到好友清單