Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C++
removing repeated characters in a string c++
Anthony Hauser
Programming language:
C++
2021-04-20 16:06:35
1
Q:
removing repeated characters in a string c++
Jan
Code:
C++
2021-04-01 02:46:47
s.erase(std::unique(s.begin(), s.end()), s.end());
0
Tags
string
character
characters
Related
remove last character from string c++
removing a character from a string in c++
delete last char of string C++
find last occurrence of character in string c++
c++ remove whitespace from string
delete one specific character in string C++
c++ delete printed characters
repeat character n times c++
remove or erase first and last character of string c++
how to remove maximum number of characters in c++ cin,ignore
c++ remove space from string
find digits in character string c++
finding no of unique characters in a string c++
remove character from string on condition c++
escape sequence in c++
count occurrences of character in string c++
New to Communities?
Join the community