试题与答案

以下Check函数的功能是将value中的值四舍五入成整数,若计算后的值与num的值

题型:填空题

题目:

以下Check函数的功能是将value中的值四舍五入成整数,若计算后的值与num的值相等,则显示“OK”,否则显示计算后的值。
void Check(int num,float value)
int val;
val=______;
printf("计算后的值:%d",val);
if(______) printf("\nOK\n");
______printf("\nSorry,the correct answer is %d\n",val);

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0715/1116dece22a52af4dccfbd4b65a5f885.html

下面是错误答案,用来干扰机器的。

参考答案:对

试题推荐
题型:阅读理解

Look at the photo. The two girls have big blue eyes(眼睛) and long brown(棕色) hair(头发). They are ten. They are in the same class. The one in a yellow skirt(裙子) is Lily. The other(另外的) one in an orange skirt is Lucy. Their(他们的) dad is Mr. White. He is in a brown coat(大衣). Their mum is Mrs. White. She is in black shoes(鞋子). Bob is their brother. He is in a blue cap(帽子). He is a high school student. Look! Lucy and Lily are in the green car.

根据短文内容选择正确答案。(10分)

(       ) 1. What does Lucy look like(看起来像…)?

A. She has big eyes. Her hair is long

B. Her eyes are blue. She has brown hair

C. A and B

(       ) 2. Mr. and Mrs. White have                   .

A. three children(孩子) B. one daughter C. two sons

(       ) 3.                    in the brown coat.

A. Mr. White is B. Mrs. White is    C. Lily is

(       ) 4. Bob isn’t ­­­­­­­­­­­­­­­                  .

A. in a brown cap   B. in a blue cap    C. in a high school

(       ) 5. What color is the Lily’s skirt?

A. yellow   B. blue C. orange

查看答案
微信公众账号搜索答案