Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Main.cpp
- *
- * Created on: 15 Eki 2011
- * Author: Serdar KUZUCU
- */
- #include <iostream>
- #include "BinaryHeap.cpp"
- using namespace std;
- int main() {
- BinaryHeap<int> myheap(3);
- for(int i=0; i<17; i++) {
- myheap.insert(i*2);
- }
- myheap.print();
- myheap.deleteMin();
- myheap.print();
- myheap.deleteMin();
- myheap.print();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement