I want my list to have an integer as well as a string value. is it possible?
I implement a hash table using STL lists that can only store an integer. I haveh the string to get the index where I store my integer. Now I want my string to be stored with an integer as well.
EDIT 1:
so I use this statement:
list<pair<int,string>> table[127];
and here is the im get error:
>>' should be
→' in the nested argument list of the template OK, I fixed it. It seems that I did not put a space in "→", so now fixing it
next question
how to add a couple to an array of tables?
source share