不必使用open()來開啟串流,ifstream、ofstream和fstream都有建構函式,可以直接指定檔案並開啟串流,例如: : ofstream fout("file.txt");.
確定! 回上一頁