restructure and add ipi texs

This commit is contained in:
2019-11-06 18:24:04 +01:00
parent e21da561fc
commit 8fd8d2a485
155 changed files with 129 additions and 0 deletions
@@ -0,0 +1,23 @@
#include<vector>
#include<iostream>
#include"Heap.hh"
#include"Zufall.cc"
int main ()
{
Zufall z(87123);
Heap<int> h;
for (int i=0; i<10; i=i+1) {
int k = z.ziehe_zahl();
std::cout << k << std::endl;
h.push(k);
if (i==5) h.pop();
}
std::cout << std::endl;
while (!h.empty()) {
std::cout << h.top() << std::endl;
h.pop();
}
}