int readInput(ElemType *&a)
{ int length,n;
FILE*input;
input = fopen("input.txt","r");
fscanf(input,"%d",&length);
a = (int *)malloc( sizeof(int)*length );
for(n=0;n<length;++n)fscanf(input,"%d",a+n);
return length;
}
readInput(ElemType *&a)
最新推荐文章于 2022-12-08 18:27:31 发布