#include <iostream>
#include <string>
#include "hash_table.cpp"
#include <time.h>

void randstr(const int length, std::string &out);

int main(void)
{
    srand(time(NULL));

    hash_set<std::string> hs_str(10, 0.8,
        [] (const std::string entry) -> unsigned int
        {
            unsigned int hash = 0;
            for(char c : entry) hash = c + (13 * hash);
            return hash;
        }
    );

    const int s_count = 30;
    std::string arr[s_count];
    for(int i = 0; i < s_count; ++i)
    {
        randstr(10, arr[i]);
        std::cout << arr[i] << std::endl;
    }

    for(std::string s : arr)
    {
        hs_str.add(s);

        hs_str.print();
        std::cout << std::endl
                    << "count: " << hs_str.size() << std::endl
                    << "capacity: " << hs_str.get_capacity() << std::endl;
    }
}

void randstr(const int length, std::string &out)
{
    char range[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,.-#'?!";
    for (int n = 0; n < length; ++n)
        out.push_back(range[rand() % sizeof(range - 1)]);

    out.push_back('\0');
}

#include <iostream>
#include <string>
#include "hash_table.hpp"
#include <time.h>

void randstr(const int length, std::string &out);

int main(void)
{
    srand(time(NULL));

    hash_set<std::string> hs_str(10, 0.8,
        [] (const std::string entry) -> unsigned int
        {
            unsigned int hash = 0;
            for(char c : entry) hash = c + (13 * hash);
            return hash;
        }
    );

    const int s_count = 30;
    std::string arr[s_count];
    for(int i = 0; i < s_count; ++i)
    {
        randstr(10, arr[i]);
        std::cout << arr[i] << std::endl;
    }

    for(std::string s : arr)
    {
        hs_str.add(s);

        hs_str.print();
        std::cout << std::endl
                    << "count: " << hs_str.size() << std::endl
                    << "capacity: " << hs_str.get_capacity() << std::endl;
    }
}

void randstr(const int length, std::string &out)
{
    char range[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,.-#'?!";
    for (int n = 0; n < length; ++n)
        out.push_back(range[rand() % sizeof(range - 1)]);

    out.push_back('\0');
}

Fix the path of header file
Fix the path of header file

Due to commit 6c418384573acb3a4842352948c9f489043c8d51
