implemented a function which is called at each entry. now we use printf instead of cout. still buggy (Speicherzugriffsfehler)
fixed
.