瀏覽單個文章
capitalm
Major Member
 
capitalm的大頭照
 

加入日期: 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離線中