摘要: #include <iostream> #include <fstream> int main() { using namespace std; ifstream ifs; ifs.open("test.txt", ios::in); if(!ifs.is_open()) { cout << "op 阅读全文
posted @ 2022-07-12 16:58 thomas_blog 阅读(32) 评论(0) 推荐(0)
摘要: #include <iostream> #include <fstream> int main() { using namespace std; ofstream ofs; ofs.open("test.txt", ios::out); ofs << "hello furong" << endl; 阅读全文
posted @ 2022-07-12 15:11 thomas_blog 阅读(32) 评论(0) 推荐(0)