rename
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#include "hashTable.h"
|
#include "hashTableDynamic.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
HashTable::HashTable() {
|
HashTable::HashTable() {
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "hashTable.h"
|
#include "hashTableDynamic.h"
|
||||||
#include "pbEntry.h"
|
#include "pbEntry.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -32,7 +32,6 @@ int main() {
|
|||||||
ht.insert(new PbEntry(random_string(7), "test", "test"));
|
ht.insert(new PbEntry(random_string(7), "test", "test"));
|
||||||
}
|
}
|
||||||
ht.print();
|
ht.print();
|
||||||
std::cout << ht.getloadFactor() << std::endl;
|
|
||||||
|
|
||||||
// ht.setHashFunction("mod17");
|
// ht.setHashFunction("mod17");
|
||||||
// ht.insert(&entry1);
|
// ht.insert(&entry1);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ BINARY = main
|
|||||||
# Name of the binary for Release
|
# Name of the binary for Release
|
||||||
FINAL = prototyp
|
FINAL = prototyp
|
||||||
# Object files
|
# Object files
|
||||||
OBJS = pbEntry.o hashTable.o main.o
|
OBJS = pbEntry.o hashTableDynamic.o main.o
|
||||||
# Compiler flags
|
# Compiler flags
|
||||||
CFLAGS = -Werror -Wall -std=c++17 -fsanitize=address,undefined -g
|
CFLAGS = -Werror -Wall -std=c++17 -fsanitize=address,undefined -g
|
||||||
# Linker flags
|
# Linker flags
|
||||||
@@ -18,6 +18,7 @@ all: binary
|
|||||||
|
|
||||||
final : ${OBJS}
|
final : ${OBJS}
|
||||||
${COMPILER} ${LFLAGS} -o ${FINAL} ${OBJS}
|
${COMPILER} ${LFLAGS} -o ${FINAL} ${OBJS}
|
||||||
|
rm ${OBJS}
|
||||||
|
|
||||||
binary : ${OBJS}
|
binary : ${OBJS}
|
||||||
${COMPILER} ${LFLAGS} -o ${BINARY} ${OBJS}
|
${COMPILER} ${LFLAGS} -o ${BINARY} ${OBJS}
|
||||||
|
|||||||
Reference in New Issue
Block a user