How to create a HashTable in C++?
-
For some reasons, I need to create C++ collection classes myself. The array and list are easy to be understood and created. Now I want to create a map or bag class. First thing I think I need to do is to know how to create HashTable for the map class. But I don't know detail concept of HashTable structure in C++. For example, a list collection has a set of objects which contain pointer to next object - this is basic concept of a list collection. I need similar concept for HashTable or Map collection, which is enough to complete them in C++. Any samples, comments and links are highly approciated. Thanks
-
For some reasons, I need to create C++ collection classes myself. The array and list are easy to be understood and created. Now I want to create a map or bag class. First thing I think I need to do is to know how to create HashTable for the map class. But I don't know detail concept of HashTable structure in C++. For example, a list collection has a set of objects which contain pointer to next object - this is basic concept of a list collection. I need similar concept for HashTable or Map collection, which is enough to complete them in C++. Any samples, comments and links are highly approciated. Thanks
-
For some reasons, I need to create C++ collection classes myself. The array and list are easy to be understood and created. Now I want to create a map or bag class. First thing I think I need to do is to know how to create HashTable for the map class. But I don't know detail concept of HashTable structure in C++. For example, a list collection has a set of objects which contain pointer to next object - this is basic concept of a list collection. I need similar concept for HashTable or Map collection, which is enough to complete them in C++. Any samples, comments and links are highly approciated. Thanks
-
For some reasons, I need to create C++ collection classes myself. The array and list are easy to be understood and created. Now I want to create a map or bag class. First thing I think I need to do is to know how to create HashTable for the map class. But I don't know detail concept of HashTable structure in C++. For example, a list collection has a set of objects which contain pointer to next object - this is basic concept of a list collection. I need similar concept for HashTable or Map collection, which is enough to complete them in C++. Any samples, comments and links are highly approciated. Thanks
includeh10 wrote:
First thing I think I need to do is to know how to create HashTable for the map class.
Read up on the subject here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
includeh10 wrote:
First thing I think I need to do is to know how to create HashTable for the map class.
Read up on the subject here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
DavidCrow wrote:
Read up on the subject here.
I'm not used to asking questions in CodeProject forums but I'll give it a try. Which is more difficult? 1) Understanding instructional material on writing C++ code for a Hashtable OR 2) Figuring out how to use Google to search for instructional material on writing C++ code for a Hashtable :-D
led mike
-
DavidCrow wrote:
Read up on the subject here.
I'm not used to asking questions in CodeProject forums but I'll give it a try. Which is more difficult? 1) Understanding instructional material on writing C++ code for a Hashtable OR 2) Figuring out how to use Google to search for instructional material on writing C++ code for a Hashtable :-D
led mike
i like the second one!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>
-
DavidCrow wrote:
Read up on the subject here.
I'm not used to asking questions in CodeProject forums but I'll give it a try. Which is more difficult? 1) Understanding instructional material on writing C++ code for a Hashtable OR 2) Figuring out how to use Google to search for instructional material on writing C++ code for a Hashtable :-D
led mike
led mike wrote:
- Figuring out how to use Google to search for...
See if this helps.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne