文件太大
程序代码:long count = 0;
string str;
fstream readf(filePath);
while(getline(readf,str))
{
count++;
cout<<count<<" "<<str<<endl;
}用以上方法读一个50多万行的trace差不多要10分钟,时间太长,求解答?
程序代码:long count = 0;
string str;
fstream readf(filePath);
while(getline(readf,str))
{
count++;
cout<<count<<" "<<str<<endl;
}用以上方法读一个50多万行的trace差不多要10分钟,时间太长,求解答?
2012-12-04 10:58
2012-12-04 19:27
2012-12-04 19:54