8.2 文件輸入輸出

傳遞給istream& 或 ostream&的實參處理cin,cout外,還可以是fstream或 sstream對象 argv[1] = "E:\\C++\\2.txt"; argv[2] = "E:\\C++\\5.txt"; ifstream input(argv[1]); ofstream out; out.open(argv[2]); 當一個fstream對象被銷燬時,close會自動被
相關文章
相關標籤/搜索