#include #include #include #include "hash_table.h" int main(void) { HashTable ht = HashTableNew(); HashTableInsert(ht, 12, 16); HashTableInsert(ht, 14, 47); HashTableInsert(ht, 15, 32); HashTableInsert(ht, 8, 65); printf("12 fav number is %d\n", HashTableGet(ht, 12)); // green HashTableInsert(ht, 12, 67); printf("12 fav colour is %d\n", HashTableGet(ht, 12)); // orange HashTableDelete(ht, 12); if (!HashTableContains(ht, 12)) { printf("12 has no fav number\n"); } HashTableFree(ht); }