1 #include <stdio.h> 2 #include <string.h> 3 4 bool compress(char *str) 5 { 6 char *p=str,c; 7 int cnt,i=0; 8 9 if(!str)return false; 10 11 p = str; 12 while(*p != '
1 #include <stdio.h> 2 #include <string.h> 3 4 bool compress(char *str) 5 { 6 char *p=str,c; 7 int cnt,i=0; 8 9 if(!str)return false; 10 11 p = str; 12 while(*p != '