哈哈……
来源:互联网 发布:python怎么输出中文 编辑:程序博客网 时间:2024/05/22 12:28
#include <iostream>#include <vector>#include <functional>#include <algorithm>using namespace std;int main(){int a[]={5,1,9,4,6,2,0,3,8,7};make_heap(a,a+10,less<int>());cout<<"make_heap:";copy(a,a+10,ostream_iterator<int>(cout," "));cout<<endl;int b[]={5,1,9,4,6,2,0,3,8,7};vector<int> heap;for(int i=0;i<10;i++){heap.push_back(b[i]);push_heap(heap.begin(),heap.end(),less<int>());}cout<<"push_heap:";copy(heap.begin(),heap.end(),ostream_iterator<int>(cout," "));// // heap.push_back(b[8]);// heap.push_back(b[9]);// // cout<<"push_heap:";// for(int i=0;i<10;i++)// cout<<heap[i]<<" ";// cout<<endl;// // push_heap(heap.begin(),heap.end(),less<int>());// for(int i=0;i<10;i++)// cout<<heap[i]<<" ";// cout<<endl;// // copy(heap.begin(),heap.end(),ostream_iterator<int>(cout," "));}
[插入]
- 哈哈……
- 哈哈……
- 哈哈……
- Brooks指出 :哈哈……
- 有工作了,哈哈……
- 哈哈…美好的明天!加油 !
- 哈哈
- 哈哈
- 哈哈
- 哈哈。
- 哈哈!
- 哈哈
- 哈哈
- 哈哈
- 哈哈
- 哈哈
- 哈哈
- 哈哈
- 动态代理&AOP
- IOS开发之---core animation
- Eclipse导入java文件出现中文乱码的解决办法
- Android电视关闭的动画效果
- 工具箱修复Dev控件显示
- 哈哈……
- window.XMLHttpRequest
- C# 函数参数传递(按值和引用)很容易混淆的概念啊
- Configuration for Linux command `screen`
- Shell编程学习进度
- 一定要多读多记FreeEIM
- Ubuntu下配置Android开发环境jdk+Eclipse+android sdk
- jQuery所有插件汇总
- 利用java语言在eclipse下实现在新浪微博开发平台发微博