工程建设定额是由多种定额结合而成的有机整体,其结构复杂、层次明确、目标明确,这体现了工程建设定额的( )特点。
A.统一性
B.科学性
C.稳定性
D.系统性
参考答案:D
下列程序的功能是:找出所有100以内(含100)满足I,I+4,I+10都是素数的整数I(1+10也是在100以内)的个数cnt,以及这些I之和sum。请编制函数countValue()实现程序要求,最后调用函数writeDAT()把结果cnt和sum输出到文件out64.dat中(数值1不是素数)。 注意:部分源程序已给出。 请勿改动主函数main()和输出数据函数writeDAT()的内容。 试题程序: #include<stdio.h> int cnt, sum; int isPrime(int number) int i,tag=1;if (number==1) return 0;for(i=2;tag && i<=number/2;i++) if(number%i==0) tag=0;return tag; void countValue ( ) void main( ) cnt=sum=0;countValue ( );printf ( "满足条件的整数的个数=%d\n", cnt);printf ( "满足条件的整数的和值=%d\n", sum);writeDAT ( ); writeDAT ( ) FILE *fp;fp=fopen("out64.dat","w");fprintf(fp,"%d\n%d\n",cnt,sum);fclose(fp);
对树中的一个结点,在先根序列中序号为pre(x),在后根序列中序号为post(x),若树中x是结点y的祖先,下列条件中正确的是 ( )。
A.pre(x)<pre(y)和post(x)<post(y)
B.pre(x)<pre(y)和post(x)>post(y)
C.pre(x)>pre(y)和post(x)<post(y)
D.pre(x)>pre(y)和post(x)>post(y)