代码改变世界

progress_display

2012-03-26 18:10  Rollen Holt  阅读(352)  评论(0编辑  收藏  举报
#include <iostream>
#include <vector>
#include<boost/progress.hpp>

using namespace std;
using namespace boost;


int _tmain(int argc, _TCHAR* argv[])
{	
	vector<int> v;
	
	progress_display pd(10000);

	for(int i=0;i<10000;++i){
		v.push_back(i*100);
		++pd;
	}
	
	return 0;
}
image