裱花工艺中,调制蛋白膏时最好选用浓稠度高、( )的新鲜蛋白。
A.有韧性
B.无韧性
C.韧性差
D.韧性好
参考答案:D
经常居所
在主函数中从键盘输入若干个数放入数组中,用0结束输入并放在最后一个元素中。下列给定程序中,函数proc()的功能是计算数组元素中值为负数的平均值(不包括0)。 例如,数组中元素的值为78、-65、-15、35、-45、0,则程序的运行结果为-41.666667。 请修改程序中的错误,使它能得到正确结果。 注意:不要改动main()函数,不得增行或删行,也不得更改程序的结构。 试题程序: #include<stdio.h> #inelude<conio.h> #include<stdio.h> double proc(int x[]) double sum=0.0; int e=0, i=0; //************found************* while(x[i]==0) if(x[i]<0) sum=sum+x[i]; c++; i++; //************found************* sum=sum\c; return sum; void main() int x[1000]; int i=0; system("CLS"); printf("\nPlease enter some data(end with 0): "); do scanf("%d", &x[i]); while(x[i++]!=0); printf("%f\n", proc(x));