Write a C program to remove all repeated characters from a given string. code example
Example: removing repeated characters in a string c++
s.erase(std::unique(s.begin(), s.end()), s.end());
s.erase(std::unique(s.begin(), s.end()), s.end());