= '\0') { if(a[i] == b) a[i] = c; count++; i++; } return count;}int main() {char a[N],b,c;int i;printf("请输入6个字符:\n");for(i = 0;i < N;i++)scanf("%c",&a[i]);printf("请分别输入被替换字符和替换字符:\n");a[i] = '\0';...
scanf("%c,%c", &x, &y); //%c和%c之前有逗号,隔开 if( Exchange(a, x, y) ){ puts(a); } else printf("没有被替换\n");