#include #include #include #include #include #include #include "heap.h" using namespace std; int main(){ Heap test_heap; srandom((long unsigned int)&test_heap); test_heap.insert(4); test_heap.insert(12); test_heap.insert(1); test_heap.insert(6); test_heap.insert(7); test_heap.insert(800); test_heap.insert(97); test_heap.insert(0x7c80ffff); // while(test_heap.size()) // cout << test_heap.pop() << endl; while(test_heap.size() < 50) test_heap.insert(random() % 1000); // test_heap.make_image("heap"); test_heap.save("saved_heap.heap"); while(test_heap.size()) cout << test_heap.pop() << endl; return 0; }