// Implementation file for the Student class // Written By: Iurii Tatishchev #include #include "Student.h" /*~*~*~* Hash function: takes the key and returns the index in the hash table *~**/ int key_to_index(const Student &key, int size) { string k = key.name; int sum = 0; for (int i = 0; k[i]; i++) sum += k[i]; return sum % size; };