Answers for "how to delete an array of chars c++"

C++
1

str remove char c++

static  void StrRemoveChar(std::string& s1, char l)
{
  s1.erase(std::remove(s1.begin(), s1.end(), l), s1.end());
}
Posted by: Guest on October-16-2021
0

c++ clear char array

for ( int i = 0; i < sizeof(message);  i++ ) {
    message[i] = (char)0;
}
Posted by: Guest on September-03-2021

Code answers related to "how to delete an array of chars c++"

Browse Popular Code Answers by Language