C++对于文件的操作一般是基于两个类:ifstream 和 ofstream 。 现在对 ifstream 类进行说明: 1. 构造函数如下或者说是建立对象的方法: a.方法一: ifstream in; in.open(char * fileName); 此方法不需要参数,而是直接调用open方法 Read More
posted @ 2017-10-13 11:13 学习丶笔记 Views(299) Comments(0) Diggs(0) Edit