堆的构建 (三)

2014-11-23 21:46:42 · 作者: · 浏览: 35
();++it){
cout<<*it<<" ";
}
cout<

heap.erase(heap.begin());
heap.insert(10);
for(Iterator it = heap.begin();it!=heap.end();++it){
cout<<*it<<" ";
}
system("pause");
return 0;
}[cpp]