18 lines
308 B
C
18 lines
308 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include "priority_queue.h"
|
||
|
int main (int argc, char** argv) {
|
||
|
PriorityQueue priority_queue = { (int*)calloc(10, sizeof(int)), 0, 5};
|
||
|
int i = 0;
|
||
|
while (true) {
|
||
|
insert(&priority_queue, i);
|
||
|
if (i % 100000 == 0) {
|
||
|
printf("%i\n", i);
|
||
|
}
|
||
|
i++;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
|