From 9aeeed76f6591a56e1d7151fd39d13842ef9f211 Mon Sep 17 00:00:00 2001 From: Samuel Oberhofer Date: Sat, 18 Jun 2022 17:06:55 +0200 Subject: [PATCH] rename --- Uebung 4/Uebung4_2/{hashTable.cpp => hashTableDynamic.cpp} | 2 +- Uebung 4/Uebung4_2/{hashTable.h => hashTableDynamic.h} | 0 Uebung 4/Uebung4_2/main.cpp | 3 +-- Uebung 4/Uebung4_2/makefile | 3 ++- 4 files changed, 4 insertions(+), 4 deletions(-) rename Uebung 4/Uebung4_2/{hashTable.cpp => hashTableDynamic.cpp} (99%) rename Uebung 4/Uebung4_2/{hashTable.h => hashTableDynamic.h} (100%) diff --git a/Uebung 4/Uebung4_2/hashTable.cpp b/Uebung 4/Uebung4_2/hashTableDynamic.cpp similarity index 99% rename from Uebung 4/Uebung4_2/hashTable.cpp rename to Uebung 4/Uebung4_2/hashTableDynamic.cpp index 757282b..77eb277 100644 --- a/Uebung 4/Uebung4_2/hashTable.cpp +++ b/Uebung 4/Uebung4_2/hashTableDynamic.cpp @@ -1,4 +1,4 @@ -#include "hashTable.h" +#include "hashTableDynamic.h" #include HashTable::HashTable() { diff --git a/Uebung 4/Uebung4_2/hashTable.h b/Uebung 4/Uebung4_2/hashTableDynamic.h similarity index 100% rename from Uebung 4/Uebung4_2/hashTable.h rename to Uebung 4/Uebung4_2/hashTableDynamic.h diff --git a/Uebung 4/Uebung4_2/main.cpp b/Uebung 4/Uebung4_2/main.cpp index f4cfcb4..255b6b5 100644 --- a/Uebung 4/Uebung4_2/main.cpp +++ b/Uebung 4/Uebung4_2/main.cpp @@ -1,4 +1,4 @@ -#include "hashTable.h" +#include "hashTableDynamic.h" #include "pbEntry.h" #include #include @@ -32,7 +32,6 @@ int main() { ht.insert(new PbEntry(random_string(7), "test", "test")); } ht.print(); - std::cout << ht.getloadFactor() << std::endl; // ht.setHashFunction("mod17"); // ht.insert(&entry1); diff --git a/Uebung 4/Uebung4_2/makefile b/Uebung 4/Uebung4_2/makefile index f15200d..cbef3e3 100644 --- a/Uebung 4/Uebung4_2/makefile +++ b/Uebung 4/Uebung4_2/makefile @@ -4,7 +4,7 @@ BINARY = main # Name of the binary for Release FINAL = prototyp # Object files -OBJS = pbEntry.o hashTable.o main.o +OBJS = pbEntry.o hashTableDynamic.o main.o # Compiler flags CFLAGS = -Werror -Wall -std=c++17 -fsanitize=address,undefined -g # Linker flags @@ -18,6 +18,7 @@ all: binary final : ${OBJS} ${COMPILER} ${LFLAGS} -o ${FINAL} ${OBJS} + rm ${OBJS} binary : ${OBJS} ${COMPILER} ${LFLAGS} -o ${BINARY} ${OBJS}