未知题型
下面程序的功能是将从键盘输入的一对数,由小到大排序输出,当输入一对相等数时结束循环,在划线处应填入的选项是 #include<iostream.h> void main( ) { int a,b,t; cin>>a>>b; f while(______) { if(a>b) { t=a;a=b;b=t;} cout << a << ' ' << b <<
A.!a=b
B.a!=b
C.a==b
D.a=b
- A.h>
B.!a=b
B.a!=b
C.a==b
【参考答案】
B
解析:根据本题提出的条件可知,控制循环的表达式应该是所输入的两数互不相等,也即只有满足这一条件时,两数才能进...
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
相关考题
- 单项选择题 下列哪一项是王弼的著作() A、《周易略例》 B、《周易本义》 C、《周易折中》 D、《周易原旨》
- 多项选择题 我国加人WTO以后,为履行我国在加入WTO关税减让谈判中承诺的有关义务并享有应有的成员权利,从2002年1月起,我国进口税则设有( )等四栏税率。
- 未知题型 关于数据库应用系统功能设计,有下列说法: Ⅰ.软件总体设计的依据包括需求分析阶段得到的数据流图,事务描述和业务规则等需求分析结果 Ⅱ.软件总体设计一般用模块结构图表示,模块结构图主要关心模块的外部特性,即上下级模块、同级模块问的数据传递和调用关系,以及模块内部处理流程 Ⅲ.数据库事务设计的依据是事务自身的事务处理逻辑 Ⅳ.总体设计阶段要对硬件平台、存储设备、操作系统、DBMS等做出合理选择,并进行初步配置设计 上述说法错误的是______。A.ⅠB.Ⅱ和ⅢC.ⅣD.Ⅰ和Ⅳ
- 未知题型 关于数据库应用系统设计,有下列说法: Ⅰ.数据库应用系统设计需要考虑数据组织与存储、数据访问与处理、应用设计等几个方面 Ⅱ.在数据库概念设计阶段,当采用自上而下的ER设计时,首先设计局部ER图,然后合并各局部ER图,得到全局ER图 Ⅲ.在数据库逻辑设计阶段,将关系模式转换为具体DBMS平台支持的关系表 Ⅳ.在数据库物理设计阶段,一般需要设计视图和关系模式的完整性约束 上述说法正确的是______。A.Ⅰ、Ⅲ和ⅣB.ⅠC.Ⅱ和ⅢD.Ⅱ和Ⅳ
- 问答题 [填空1]实现了通过磁场强度的变化,使闭合线路中产生电流,这就是电磁感应现象
- 未知题型 某跨国公司的业务系统需要提供全球性服务,该业务系统需要34小时*7天服务,系统业务繁忙,为了保证业务系统数据库中数据的安全,需要设计与实施数据转储机制,设完成该数据库每天数据增量的转储需要2个小时,在不考虑成本因素的情况下,下列最合理的是______。D.每周做一次完全转储,每天选择浮动时间段对变化的数据进行转储
- 单项选择题 在有机实验中用于抽滤的常用仪器是 ( ) A、布氏漏斗 B、三角漏斗 C、分液漏斗 D、滴液漏斗
- 问答题 桁架结构是由若干()在其两端用()连接而成的()结构体系,主要由()、()和()三部分组成,腹杆有()和()之分。
- 未知题型 In the second paragraph, 'Maybe he doesn't see it himself', the pronoun 'it' refers to______.A.being friendlyB.a hit of envyC.lucky dogD.your luck
- 未知题型 Thirty-two people watched Kitty' Genovese being killed right beneath their windows. She was their neighbor. Yet none of them helped her. Not one even called the policE.Was this gunman cruelty? Was it lack of feeling about one's fellow man?'Not so,' say scientists John Barley and Bib FatanE.These men went beyond the headlines to probe the masons why people didn't act. They found that a person has to go through two steps before he can help. First he has to notice that is an emergency. Suppose you see a middle-aged man fall to the side-walk. Is he having a heart attack? Is he in a coma(昏迷) from diabetes(糖尿病)? Or is he about to sleep off a drunk? Is the smoke coming into the room from a leak in the air conditioning? Is it 'steam pipes'? Or is it really smoke from a fire? It's not always easy to tell if you are faced with a real emergency.Second, and more important, the person faced with an emergency must feel personally responsiblE.He must feel that he must help, or the person won't get the help he needs. The researchers found that a lot depends on how many people are arounD.They had college students in to be 'tested'. Some came alonE.Some came with one or two others. And some came in large groups. The receptionist started them off on the 'tests'. Then she went into the next room. A curtain divided the 'testing room' and the room into which she went. Soon the students heard a scream, the noise of file cabinets falling and a cry for help. All of these had been pre-recorded on a tape-recorder. Eight out of ten of the students taking the test alone acted to help. Of the students in pairs, only two out of ten helpeD.Of the students in groups, none helpeD.In other words, in a group, Americans often fail to act. They feel that others will act. They, themselves, needn't. They do not feel any direct responsibility. Are people bothered by situations where people are in trouble? Yes. Scientists found that the people were emotional, they sweated, they had trembling hands. They felt the other person's troublE.But they did not act. They were in a group. Their actions, were shaped by the actions of those they were with.The purpose of this passage is______.A.to explain why people fail to act in emergenciesB.to explain when people will act in emergenciesC.to explain what people will do in emergenciesD.to explain how people feel in emergencies
![](/pptiku/images/st_jpg.png)