试题与答案

下面程序实现输出从“!”开始的91个ACCII字符及码值,要求每行输出7项。请完成程

题型:填空题

题目:

下面程序实现输出从“!”开始的91个ACCII字符及码值,要求每行输出7项。请完成程序。
#include<iostream.h>
void main( )
char c= "!";
int d , n=1;
do
while (n<=7)
d=c;
cout<<c<< "=" <<d<<“”;
        c++
n++;

cout<< "\n" ;
[7] ;
while(c<= ’!’ +90)
cout<< "\n" ;

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0419/bca9fc78c267b96766e6d27880c3eaf4.html

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

参考答案:A, B, C, D

试题推荐
题型:阅读理解

阅读理解。判断下列句子是否与短文内容相符,相符的填"T",不相符的填"F"。

     You may know the song Happy Birthday very well. But do you know who wrote this song and for

 whom it was written?

     Let me tell you a story.

     About one hundred years ago, there was a girl in the USA. She loved children very much and wrote

 many songs for children. One of them was the song Good Morning To You. The song was very popular

 at that time among children, but not all grown-ups ( 成年人 ) knew it.

     The girl was very poor. Once her friends invited her to a little child's birthday party. She felt happy but

 sad because she had no money to buy a present for him. Finally she decided to sing the song Happy Birthday in the melody( 曲调 ) of Good Morning to You for the little boy.

     When her friends heard the song at the party, they were very happy. "How wonderfully she is singing!

  We have not heard this song before. It's a special present," said someone. And they learned to sing it

 together.

     Later, the song became very popular throughout the world. People like it because it's simple and

  friendly.

    

( ) 1. Happy Birthday is a old song. Nobody knows who wrote the song Happy Birthday.

(     ) 2.The song Happy Birthday is a song from America.

(     ) 3. The melody of Happy Birthday comes from the melody of Good Morning to You.

(     ) 4. The girl first sang the song for a little child as a birthday present.

(     ) 5. The girl knew the song would be popular before she came to the party.

查看答案
题型:单项选择题

24.在面向对象方法中,对象是类的实例。表示对象相关特征的数据称为对象的 (31) ,在该数据上执行的功能操作称为对象的 (32) ;一个对象通过发送 (33) 来请求另一个对象为其服务。通常把一个类和这个类的所有对象称为“类及对象”或对象类。在UML中,用来表示显示构成系统的对象类以及这些对象类之间关系的图是 (34)

(34)

A.用例图

B.构件图

C.类图

D.对象图

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