fstream 是一個由C++提供的類別,可以用於將資料寫入檔案,或讀取檔案資料。 ... while(!file.eof( )) //若到達檔案結尾則”file>>str”將傳回0, 跳出while回圈.
確定! 回上一頁