copying string from one string pointer array to another
<pre><code>if(temp&gt;final_hash_index_one)
            {
                string *tmp = new string[temp+1];
                std::copy(level_two, tmp, final_hash_index_one+1);
                delete [] level_two;
                level_two = tmp;
            }
</code></pre>

<p>this method is not working and is giving me an exception that is "invalid null pointer"!!  </p>

<pre><code>string *tmp = new string[some_size];
string *level_two = new string[some_size];    
</code></pre>

<p>how to copy contents from level_two to tmp??? in case of string one; string two . we can copy the string through loop. but what in this case??</p>
