C语言txt文件存放数据1~20,数之间用空格隔开,用fread()函数读这些数据...答:main(){ FILE *fp;int i,j;int a[20];fp=fopen("d:/main.txt","r");for(i=0;i<20;){ if(fscanf(fp,"%d %d %d %d %d",&a[i],&a[i+1],&a[i+2],&a[i+3],&a[i+4])!=EOF){ printf("%d %d %d %d %d\n",a[i],a[i+1],a[i+2],a[i+3],a[i+4]);...
C语言简单东西。。懂得叫我一下。。最好代码来。。或者看看我写的怎么...答:以下为代码:int main(){int n, i, j, len, amount;char a[1010][30], b[1010][30], c[1010][30];while (scanf("%d", &n) != EOF&&n != 0){i = 0;while (i < n){scanf("%s%s", a[i], b[i]);i++;}for (i = 0; i < n; i++){strcpy(c[i], a[i])...