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,26 @@
#include<cassert>
#include<iostream>
#include"Array.hh"
#include"DLL.hh"
#include"Zufall.cc"
int main () {
Zufall z(87124);
Array<int> a(5);
DLList<int> l;
// Erzeuge Array und Liste mit 5 Zufallszahlen
for (int i=0; i<5; i=i+1) a[i] = z.ziehe_zahl();
for (int i=0; i<5; i=i+1)
l.insert(l.end(), z.ziehe_zahl());
// Benutzung
for (Array<int>::Iterator i=a.begin();
i!=a.end(); i++)
std::cout << *i << std::endl;
std::cout << std::endl;
for (DLList<int>::Iterator i=l.begin();
i!=l.end(); i++)
std::cout << *i << std::endl;
}