String processing and memory management in C++
<p>I have certain string processing to do , the approach I am using is in following sample -</p>

<pre><code>Void ProcessObjects(int nObject)
{
    std::string sInfostr;

    for(int i = 0;i&lt;nObject;i++)
    {
      InfoObject Inf = new InfoObject; 
      GetInfoObject(&amp;Inf);
      GetStoredInformation(Inf, std::string &amp;sInfostr)
      delete Inf;           
    }
}


void GetStoredInformation(InfoObject Inf, std::string &amp;sInfostr) 
{
    char tag[1000]; 

    GetInformation(&amp;Inf);

    sprintf(tag, "name=%s",Inf.name);
    sInfostr += tag;        
    sprintf(tag, "name1=%s",Inf.name1);
    sInfostr += tag;
    sprintf(tag, "name2=%s",Inf.name2);
    sInfostr += tag;
    sprintf(tag, "name3=%s",Inf.name3);
    sInfostr += tag;
    sprintf(tag, "name4=%s",Inf.name4);
}
</code></pre>

<p>Now can I get some suggestion is it a good way to process string?
Will I code go in any trouble if "nObject" above 10,000?</p>
