标签:code pre png image har style void info char
1 void delchar(char *str, char c) 2 { 3 int i, j; 4 char a[MAXN]; 5 6 j = 0; 7 for (i = 0; str[i] != ‘\0‘; i++) 8 { 9 if (str[i] != c) 10 { 11 a[j] = str[i]; 12 j++; 13 } 14 } 15 a[j] = ‘\0‘; 16 17 for (i = 0; a[i] != ‘\0‘; i++) 18 { 19 str[i] = a[i]; 20 } 21 str[i] = ‘\0‘; 22 }
标签:code pre png image har style void info char
原文地址:https://www.cnblogs.com/2018jason/p/12072451.html