forked from trenton125/Project2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (21 loc) · 888 Bytes
/
main.cpp
File metadata and controls
32 lines (21 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream>
#include "splay.h"
#include "heap.h"
#include <string>
using namespace std;
// #include "Bridges.h"
// #include "DataSource.h"
// #include "data_src/Game.h"
// using namespace bridges;
int main() {
MaxHeap heap;
heap.insertHeap("Zelda: Breath of the Wild", 2017, 9.8, {"Adventure", "Open World"}, "Switch", "9.7");
heap.insertHeap("Halo: Combat Evolved", 2001, 9.0, {"Shooter", "Sci-Fi"}, "Xbox", "9.1");
heap.insertHeap("Animal Crossing: New Horizons", 2020, 8.5, {"Simulation"}, "Switch", "8.9");
heap.insertHeap("Mario Kart 8 Deluxe", 2017, 9.3, {"Racing", "Multiplayer"}, "Switch", "9.5");
heap.insertHeap("God of War", 2018, 9.6, {"Action", "Adventure"}, "PlayStation", "9.8");
heap.display();
heap.insertHeap("Zzzz Ultimate Game", 2025, 10.0, {"Fantasy", "RPG"}, "PC", "10.0");
heap.getMax();
heap.display();
}