I wrote a simple C++ program that removes the duplicate spaces in a string. The function doing the work is RemoveDupSpaces : char * RemoveDupSpaces( char *s) { char *a = s; char *b = s; while (*a != '\0' ) { while (*a != ' ' && *a != '\0' ) *b++
Read More...