概述
感觉自己写的好麻烦,求简便方法
//.h头文件
char QuChong(char arr[],int a);
//.m函数体
char QuChong(char arr[],int a)
{
long length = strlen(arr);
for (int i = 0; i <length-1; i++) {
for (int j = i+1; j < length; j++) {
if (arr[i] == arr[j]) {
for (int n = j; n <length; n++) {
arr[n] = arr[n+1];
}
int b = (int)length--;
arr[b] = '