删除特定的字符的疑惑??
#include<stdio.h>#include<malloc.h>
#define DB 100
#define zimushanchu 1
#define dongtaineicun 1
#define hanshuzhizhen 1
struct STU{
char*name;
char sex;
int cj;
int bj;
} *pstu,class1[]={
"zhanglei",'m',55,6
};
enum WEEK{
sun,mon,tue,wed,the,fri,sat
}a,b,n;
union GOGYONG{
int a;
char c;
};
int main(void)
{
#ifdef zimushanchu
char c;
int i;
int j;
char* array;
int len;
printf("please input len:\n");
scanf("%d",&len);
getchar();
array=(char*)malloc(len*sizeof(int));
printf("please input string:\n");
gets(array);
printf("please input char:\n");
c=getchar();
for(i=0,j=0;array[i]!='\0';i++)
if (array[i]!='c')
array[j++]=array[i];
array[j]='\0';
printf("%s\n",array);
free(array);
#endif
return 0;
} 我在删除时不成功啊?请大虾帮忙