试题与答案

请编写一个函数unsigned proc(unsigned u),u是一个大于10的

题型:问答题

题目:

请编写一个函数unsigned proc(unsigned u),u是一个大于10的无符号整数,若u是n(5≥n≥2)位的整数,则函数求出u的后n-1位的数作为函数值返回。
例如,u值为1234,则函数返回234;若u值为234,则函数返回34。
注意:部分源程序已给出。
请勿改动主函数main和其他函数中的任何内容,仅在函数proc的花括号中填入所编写的若干语句。
试题程序:
#include<stdlib.h>
#include<conio.h)
#include<stdio.h>
unsigned proc(unsigned u)


void main()

unsigned x;
system("CLS");
printf("Enter a unsigned integer number: ");
scanf("%u", &x);
printf("The original data is:%u\n", x);
if(x<10)
printf("Data error!");
else
printf("The result: %\kn", proc(x));

答案:

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

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

参考答案:对

试题推荐
题型:填空题

单词拼写。

 根据下列句子及所给汉语注释,写出空缺处各单词的正确形式。(每空只写一词)

1.When his mother entered the room, he ______ to be reading.(假装)

2.On teachers' Day, large quantities of ________kept pouring in. (明信片)

3.The dark clouds are gathering. It is _________hard.(刮)

4.You'd better not have these _______running all the time. (拖拉机)

5. I've only two ______ left in my hand. (钻石)

6.The teacher prepared various reading ______(材料) for practising reading.

7. May 4th ______ took place in 1919.(运动)

8. My little brother is much ______ than me. (淘气)

9. An idea suddenly ______me that he might have an accident.(想起)

10. Introductions are ______ since you all know each other. (没必要)

查看答案
题型:问答题

某医院推行医生管理改革,院长说:医生们的辛勤劳动和创造不能成为过眼烟云,医生的劳动不可能像工人那样量化计酬、也不能像农民那样个体承包,要克服干好干坏都一样的弊端,就必须把医生的功绩记录在案,业务档案具有权威性,可以为今后医生晋升、提工资、奖励提供翔实客观的依据,也是医院的财富。业务档案只记功不记过。建立业务档案后,出现了医生自发向上,大家比贡献的局面,老医生焕发了青春,年轻医生科研成果显著。 问题(1):试用内容型激励理论分析、论述以上管理方法之所以产生这样效果的原因。 问题(2):以上管理方法产生效果的理论依据主要有哪些

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