summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/BinHeap.cc2
-rw-r--r--lib/CList.cc2
-rw-r--r--lib/PCommon.cc3
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);
}