皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
请编写函数fun(),对长度为7个字符的字符串,除首、尾字符外,将其余5个字符按ASCII码值降序排列。 例如:原来的字符串为CEAedca,则排序后输出为CedcEAa。 注意:部分源程序已存在文件test22_2.cpp中。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号中填入所编写的若干语句。 文件test22_2.cpp的内容如下: include <iostream.h> include <stdio.h> include <ctype.h> include <conio.h> void int fun(char *s, int num) { } void main ( ) { char s[10]; printf ('输入7个字符的字符串:'); gets(s); fun(s,7); cout<<s; }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【判断题】土体发生滑坡的根本原因是土体内部某个面上由土体自重、外荷以及渗透力等在坡体内引起的剪应力达到了它的抗剪强度。
A.
正确
B.
错误
【多选题】Which is the most appropriate to answer this question?May I take pictures here?
A.
Sorry, you are not allowed.
B.
Sorry, I'm afraid that is not allowed.
C.
Do not.
D.
No way.
E.
Thank you.
F.
You are wrong.
【判断题】旋转驱动装置采用卧式电动机—蜗轮减速器传动的传动效率较高,一般用于大型旋转起重机中。
A.
正确
B.
错误
【多选题】分析竞争对手,应着重分析竞争对手的()
A.
产品优点
B.
服务手段
C.
硬件优势
D.
流程创新
【单选题】单纯疱疹好发生于
A.
四肢
B.
躯干
C.
口腔
D.
皮肤一黏膜交界处
E.
眼角
【简答题】土体发生滑坡的根本原因是由边坡中土体内部某个面上由土体自重、外荷及渗透力等在坡体内引起的剪切力达到了他的()
【简答题】Read the following essay question and introduction then choose which is the right conclusion. Introduction: It is true that many leaders and senior executives in global companies are elderly people. ...
【单选题】What is the possibi9 reason for the candidates fail to get jobs at the BBC?
A.
Because they are not qualified engineers.
B.
Because they have had little exposure to high level of sounds.
C.
Because their stereo systems are poor.
D.
Because they suffer from hearing loss.
【单选题】Which organizational pattern is used in a speech with the following main points? First, each participant is given a sheet of paper and told the brainstorming question. . Second, participants are asked...
A.
Causal.
B.
Spatial.
C.
Topical.
D.
Chronological.
【判断题】土体发生滑坡的根本原因是土体内部某个面上由土体自重、外荷以及渗透力等在坡体内引起的剪应力达到了它的抗剪强度。
A.
正确
B.
错误
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题