( )要求评标时,按事先公布的标准对待所有投标人。
A.公开原则 B.公平原则C.公正原则 D.独立原则
参考答案:C
解析: P 106招标投标管理的基本原则。
中国人民银行在国务院领导下,制定和执行货币政策的目的是(),并以此促进经济增长。
A、促进货币的流通
B、保持货币币值的稳定
C、监督货币的发行
D、防范人民币的各类造假行为
字符串str由数字字符组成(长度不超过5个字符),可看做任意进制的数,请补充函数proc(),该函数的功能是:把str字符串从二进制转换为十进制的数,结果保存在数组xx中,由函数返回转换后数组xx的实际长度。其中x表示str原来的进制,y表示要转换成的进制。例如,输入str="1011", x=2,y=10,结果输出:11。 注意:部分源程序已给出。 请勿改动主函数main和其他函数中的任何内容。 试题程序: #include<stdio.h> #include<stdlib.h> #include<string.h> #define M 8 int xx[M]; int proc(char*str, int x, int y) int sum; int i=0; char *p=str; for(i=0; i<M; i++) xx[i]=0; sum= (1) ; p++; while(*p) sum=sum*x+*p-’0’; p++; i=0; while(sum!=0) xx[i]= (2) ; (3) ; i++; return i; void main() char str[6]; int i; int n; int x; int y; printf("Enter a string made up of ’0’ to ’9’ digits character: "); gets(str); if(strlen(Str)>5) printf("Error: string too longer!, please input again!\n\n"); exit(0); for(i=0; slr[i]; i++) if(str[i]<’0’||str[i]>’9’) printf("Error: %c not is ’0’to ’9’ digits character! \n\n", str[i]); exit(0); printf("The original string: "); puts(str); printf("\nINPUT x="); scanf("%d", &x); printf("\nINPUT y="); scanf("%d", &y); n=proc(str, X, y); printf("\n%s is convered to", str); for(i=n=1; i>=0; i--) printf("%d\n", xx[i]/n);