堆的构建 (三)

2014-11-23 21:46:42 来源: 作者: 浏览: 31
();++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]

 
 
 

-->

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: