I am trying to create a hash table using the STL vector and list (for collisions) and Microsoft Visual C++ will not let me declare the following:
vector<list<string> > hashTable(251);
but will allow
vector<list<int> > hashTable(251);
I have tried to include string and also to typedef the string as char[20] but neither will work. Is there a way to declare such a vector?
vector<list<string> > hashTable(251);
but will allow
vector<list<int> > hashTable(251);
I have tried to include string and also to typedef the string as char[20] but neither will work. Is there a way to declare such a vector?