各位帮帮我啊
int insertlist(list,n,x,i)
int *list,n,x,i; {int j; if(i<0||i>n-1) return(0); else {for(j=n;j>=i;j--) list[j]=list[j-1]; list[i-1]=x; return(1);} } #include "stdio.h" #define N 10 main() { int a[100]; char input[10], output[10]; int n,x,i,k; int j; FILE *in,*out;
clrscr(); printf("please enter input file nane\n"); gets(input); in=fopen(input, "w"); printf("please enter a[j]\n"); for(j=0;j<N;j++) scanf("%d",&a[j]); for(j=0;j<N;j++) fprintf(in,"%4d",a[j]); printf("please enter i and x \n"); scanf("%d%d",&i,&x); fclose(in); 为什么我、调试不出来啊,各位帮帮忙啊