皮皮学,免费搜题
登录
搜题
【简答题】
下列给定,函数 fun 的功能是:将大写字母转换为对应小写字母之后的第 5 个字母;若小写字母为 v ~ z ,使小写字母的值减 21 。转换后的小写字母作为函数值返回。例如,若形参是字母 A ,则转换为小写字母 f 。形参是字母 W ,则转换为小写字母 b 。请改正函数 fun 中的错误,使它能得出正确的结果。 注意:不要改动 main( ) 函数,不得增行或删行,也不得更改程序的结构 #include #include char fun(char c) { if (c>='A' && c<='Z') /**********found**********/ c=c-32; if (c>='a' && c<='u') /**********found**********/ c=c-5; else if (c>='v' && c<='z') c=c-21; return c; } main ( ) { char cl, c2; printf("\nEnter a letter(A-Z) : êo"); cl=getchar( ); if (isupper(cl)) { c2=fun(cl); printf("\n\nThe letter %c change to %c\n",cl,c2); } else printf("\nEnter (A-Z) !\n"); }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】铁路线路在空间的位置是用它的()表示的
A.
中心线
B.
轨道边缘线
C.
路基线
D.
以上均可
【判断题】铁路线路在空间的位置是用它的线路中心线表示。
A.
正确
B.
错误
【简答题】一条铁路线在空间的位置是用它的线路中心线来表示的,中心线点的位置是在()中点。
【单选题】I could give an opinion __________________________, but I would rather think about it.
A.
off the sleeve
B.
off the cuffs
C.
off the cuff
D.
off the sleeves
【简答题】I would rather think of life as a good book. The further you get into it, the more it begins to come together and _________.
【判断题】铁路线路在空间的位置是用它的线路中心线表示的。()
A.
正确
B.
错误
【单选题】有一批经过热变形的锻件,晶粒粗大,不符合质量要求,主要原因是( )。
A.
始锻温度过高
B.
始锻温度过低
C.
终锻温度过高
D.
终锻温度过低
【简答题】I would rather think of life as a good book. The further you get into it, the more it begins to come together and ____. (get along, make sense, close in on, close up)
【判断题】铁路线路在空间的位置是用它的中心线来表示的。
A.
正确
B.
错误
【单选题】I don't think he meant to hurt you yesterday. I would rather he ________ .
A.
didn't say that
B.
don't say that
C.
doesn't say that
D.
hadn't said that
相关题目: