C语言编程题
C语言编程题
日期:2013-11-30 22:37:55 人气:1
#include
int main(void)
{
FILE *fp;
int a[100];
int i=0;
int j,temp;;
if((fp=fopen("text.txt","rb"))==NULL)
{
printf("error!");
exit(1);
}
while(fscanf(fp,"%d",&a[i]