title: String replace function c++
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5878775/how-to-find-and-replace-string">How to find and replace string?</a>  </p>
  </blockquote>
  
  
  
  <p>How I can get function like:</p>
  
  <pre><code>string gg="13332";
  gg.replace("333","");//gg="12"
  </code></pre>
  
  <p>?
  I can't find anything at standart library.
  EDIT: my function:</p>
  
  <pre><code>     bool isDalshe=false;
           do{
               isDalshe=false;
           for(int i=0;i&lt;10;i++){
               for(int j=3;j&lt;9;j++){
                   found=sk.find(mas[i][j].ch);
                   if(found!= std::string::npos){
                   glob_c+=mas[i][j].i;
                   cout&lt;&lt;"Found: "&lt;&lt;int(found)&lt;&lt;endl;
  //In this place I need to replace "mas[i][j].ch" with "" in sk
                   isDalshe=true;
                   }
               }}
           }
           while(isDalshe);
  </code></pre>