2019年5月1日

C++文件读写

摘要: 头文件:#include <fstream> C++文件读写主要通过三个类创建文件对象进行操作:ofstream,ifstream,fstream; 文件读写流程: 1.包含头文件:#include <fstream>; 2.通过类创建文件对象与要进行读写的文件建立连接; 1)创建fstream文件 阅读全文

posted @ 2019-05-01 21:15 ggsdduzdl 阅读(169) 评论(0) 推荐(0) 编辑

导航