Re: how to remove spaces from string!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



string NoSpaces(string s)
{
  while(s.find(" ") != string::npos)
  {
    s.replace(s.find(" "), 1, "");
  }
  return s;
}


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux