I am starting with c++ and need to know, what should be the approach to copy one hashtable to another hashtable in C++?
We can easily do this in java using: HashMap copyOfOriginal=new HashMap(original);
But what about C++? How should I go about it?
UPDATE
Well, I am doing it at a very basic level,perhaps the java example was a wrong one to give. This is what I am trying to implement using C++:
I have this hash array and each element of the array is the head of a linked list. Which has it's individual nodes (data and next pointer).
And now, I need to copy the complete hash array and the linked list each node is pointing to.