今年某市约有102000名应届初中毕业生参加中考,102000用科学记数法表示为 [ ]
A.0.102×106
B.1.02×105
C.10.2×104
D.102×103
答案:B
已知数据文件IN85.DAT中存有200个4位数,并已调用读函数readDat()把这些数存入数组a中,请编制一函数jsVal(),其功能是:如果一个4位数的千位数字上的值加十位数字上的值恰好等于百位数字上的值加上个位数字上的值,并且此4位数是偶数,则统计出满足此条件的数的个数cnt并把这些4位数按从小到大的顺序存入数组b中,最后调用写函数writeDat()把结果cnt及数组b中符合条件的4位数输出到OUT85.DAT文件中。 注意:部分源程序已给出。 程序中已定义数组:a[200],b[200],已定义变量:cnt。 请勿改动主函数main()、读函数readDat()和写函数writeDat()的内容。 试题程序: #include<stdio.h> #define MAX 200 int a[MAX],b[MAX],cnt=0; void jsVal( ) void readDat( ) int i;FILE *fp;fp=fopen("IN85.DAT","r");for(i=0;i<MAX;i++) fscanf(fp,"%d",&a[i]);fclose(fp);main() int i;readDat();jsVal();printf("满足条件的数=%d\n", cnt);for(i=0;i<cnt;i++) printf("%d",b[i]);printf("\n");writeDat();writeDat() FILE *fp;int i;fp=fopen("OUT85.DAT","w");fprintf(fp,"%d\n",cnt);for(i=0;i<cnt;i++) fprintf(fp, "%d\n",b[i]);fclose(fp);
— There will be people in Beijing than usual because of all the visitors to the Olympics.
— Right. We Chinese should feel proud of the Olympics and try our best to help! [ ]
A. many
B. more
C. most