void Delete Redun danly(list *list) { int i,j; if(list ->length<2) { printf("there aren't two or more than two element"); return; } for(j=1,i=2;j<=list->length;i++) if(list->data[i]!=list->data[j]) { j++; if(i!=j) list->data[j]=list->dat[i]; } list->length=j; printf("\n"); for("%d\t",list->data[i]) }
main() { list list; int i,temp; printf("\n"); list.length=0; scanf("%d",&temp); while(temp) { list.data[list.length]=temp; scanf("%d",&temp); } printf("\n"); for(i=1;i<list.length;i++) printf("%d",list.data[i]); deletered undanly(&list);
printf("\n"); for(i=1;i<=list.length;i++) printf("%d",list.data[i]); }
"void Delete Redun danly(list *list)"有什么问题啊???