Реализация хеш-таблицы (2015-2016)

35 views
Skip to first unread message

Alexey Sidnev

unread,
Apr 8, 2016, 1:15:39 AM4/8/16
to Основы программирования
Постановка задачи: http://goo.gl/forms/rauEsooRSK

Alexey Sidnev

unread,
Apr 29, 2016, 2:20:13 AM4/29/16
to Основы программирования
Пример прототипа класса для реализации хеш-таблицы.
template<class KeyType>
class HashTable {
  typedef int (*HashFunction)(KeyType);
  
  HashFunction hash;
  HashTable(HashFunction _hash);
};

int my_hf(char *) {
  return 0;
}

HashTable<char*> ht(my_hf);
Reply all
Reply to author
Forward
0 new messages