Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void RemoveDoubleSymbols(char* str, int length)
- {
- for(int i = 0; i < length; i++)
- {
- for(int k = i+1; k < length; k++)
- {
- if( str[i] == str[k] && str[i] != '\0' )
- {
- for(int j = k; j < length; j++)
- {
- str[j] = str[j + 1];
- }
- i--;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment