blob: bd647c29b62c43fe596995a3a6395af0a6ad53d7 (
plain)
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
32
33
|
/*
*
* description: Displays the A* Algorithm on a grid.
*
* author: Yann Herklotz <ymherklotz@gmail.com>
* date created: DD-MM-YYYY
*
*/
#include "tilemap.hpp"
#include "astar.hpp"
#include "priority_queue.hpp"
#include <SFML/Graphics.hpp>
#include <iostream>
#include <cstdlib>
using namespace std;
int main(int argc, char *argv[]) {
PriorityQueue<int> pq;
pq.push(5);
pq.push(2);
pq.push(3);
pq.push(8);
pq.push(19);
pq.push(1);
cout << pq.pop() << " " << pq.pop() << " " << pq.pop() << endl;
return 0;
}
|