Réduire
Brouillon
0
29/03/2013
0
C++ - Suppression de caractères d'une chaîne
Mots-clés:
Par ex. suppression des "
   void Test::removeQM(string& text)
   {
      string::size_type pos = text.find("\"");
      while (pos != string::npos)
      {
         text.erase(pos, 1);
         pos = text.find("\"");
      }
   }