diff options
author | Pixel <> | 2001-03-22 12:37:28 +0000 |
---|---|---|
committer | Pixel <> | 2001-03-22 12:37:28 +0000 |
commit | 6dbb3e3b0c624b1e4d51e7f3034918fe58e95970 (patch) | |
tree | 47a45592a6ca1073d2563fab4cb5753747b586c7 /lib | |
parent | 9e70c36a3c49801a0cb0bf1f0a4f8b353e4703f1 (diff) |
Last bugfixe (?)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/BinHeap.cc | 2 | ||||
-rw-r--r-- | lib/CList.cc | 2 | ||||
-rw-r--r-- | lib/PCommon.cc | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/lib/BinHeap.cc b/lib/BinHeap.cc index bb58141..b4df068 100644 --- a/lib/BinHeap.cc +++ b/lib/BinHeap.cc @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <iostream.h> #include "config.h" #include "BinHeap.h" #include "CList.h" @@ -77,6 +78,7 @@ BinHeap::~BinHeap(void) { if (Datas) free(Datas); + delete FP; } Key_t BinHeap::ReadKey(Cell C) diff --git a/lib/CList.cc b/lib/CList.cc index 7e1f39a..07378db 100644 --- a/lib/CList.cc +++ b/lib/CList.cc @@ -1,4 +1,5 @@ #include <stdio.h> +#include <iostream.h> #include "config.h" #include "CList.h" @@ -26,6 +27,7 @@ CList::CList(CList * IPoint, Datas_t IDatas, Key_t IKey):Left(IPoint), Right(IPo CList::CList(void):Left(NULL), Right(NULL), Key(0), Datas(NULL) { } + CList::~CList(void) { if (Right) diff --git a/lib/PCommon.cc b/lib/PCommon.cc index 1ceec6a..16a8a3f 100644 --- a/lib/PCommon.cc +++ b/lib/PCommon.cc @@ -46,10 +46,7 @@ PriorityList *PriorityList::GenericUnion(PriorityList * P) Key_t IKey; Datas_t IDatas; - cerr << "Dans l'union generique\n"; - while (!(P->IsEmpty())) { - cerr << "Extraction de la clef " << IKey << endl; IKey = P->Extract_Min(IDatas); Insert(IKey, IDatas); } |