?? main.cpp
字號:
#include "Maxheap.h"
#include <iostream>
using namespace std;
int main()
{
int n=200,m=100;
Object o[200];
int i,temp=0;
for(i=99;i>=0;i--)
o[i] = Object(i,i);
Maxheap h = Maxheap(o,m,n);
h.buildHeap();
h.enqueue(Object(100,100));
// cout << h.dequeue()<<endl;
h.changeWeight(Object(0,100));
// h.printMap();
h.print();
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -