64,681
社区成员
发帖
与我相关
我的任务
分享
#include<string>
#include<cctype>
#include<iostream>
#include<fstream>
using namespace std;
void GenerateTheFile::BuildingTheDicMap(CStringArray &path){
ifstream fin;
int fileN=path.GetCount(),i=0;
int lineCount;
while(i<fileN){
fin.open(path[i]);
lineCount=0;
CString line;
while(fin.good()){
while(getline (fin, line))
{
cout<<line<<endl;
}
}
fin.close();
i++;
}
}