摘要: 今天学了一下C++的ofstream写文件,代码肯定没问题,环境是win10虚拟机,软件是vs2019 ofstream ofs; ofs.open("test.txt", ios::out); ofs << "姓名:张三" << endl; ofs << "性别:男" << endl; ofs < 阅读全文
posted @ 2025-10-19 20:38 秋秋秋秋秋寒 阅读(4) 评论(0) 推荐(0)