65,210
社区成员
发帖
与我相关
我的任务
分享
map <string,char*>::iterator iter;
char* temp=new char[33];
fin.open("C:\\test", ios::in || ios::binary);
while (!fin.eof()) {
fin.read(temp, 32);
temp[32]='\0';
hash = temp;
iter = data_map.find(hash);
if (iter != data_map.end()) {
fout < <iter->second;
//cout < <iter->first < <endl;
//cout < <iter->second < <endl;
}
else
break;
}
fout.close();