试题与答案

红楼梦》第六回“刘姥姥一进荣国府”中,刘姥姥有这么一段话:“我们也是知道艰难的,但俗

题型:问答题 简答题

题目:

红楼梦》第六回“刘姥姥一进荣国府”中,刘姥姥有这么一段话:“我们也是知道艰难的,但俗语说的:“瘦死的骆驼比马大”呢。凭他怎样,你老拔根寒毛比我们的腰还壮哩!”刘姥姥的这段话是对谁说的?为何说这话?请简叙事情的经过。

答案:

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

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

参考答案:A

试题推荐
题型:问答题

请使用“答题”菜单或使用VC6打开考生文件夹proj1下的工程proj1,其中有枚举DOGCOLOR、狗类Dog和主函数main的定义。程序中位于每个//ERROR************found************下的语句行有错误,请加以改正。改正后程序的输出应该是:
There is a white dog named Hoho.
There is a black dog named Haha.
There is a motley dog named Hihi.
注意:只能修改每个//ERROR************found************下的那一行,不要改动程序中的其他内容。
//源程序
#include <iostream>
using namespace std;
//狗的颜色:黑、白、黄、褐、花、其他
enum DOGCOLOR BLACK,WHITE,YELLOW,BROWN,PIEBALD,OTHER;
class Dog//狗类
DOCCOLOR color;
char name[20];
static int count;
public:
Dog(char name[],DOGCOLOR color)
strcpy(this->name,name);
//ERROR************found************
strcpy(this->color,color);

DOGCOLOR getColor() const return color;
//ERROR************found************
const char*getName() const return*name;
const char*getColorString() const
switch(color)
case BLACK: return"black";
case WHITE: return"white";
case YELLOW: return"yellow";
case BROWN: return"brown";
case PIEBAIJD: return"piebald";

return"motley";

void show() const cout<<"There is a"<<getColorString()<<"dog named"<<name<’.’<<endl;

int main()
//ERROR************found************
Dog dog1("Hoho",WHITE),dog2("Haha",BLACK); dog3("Hihi",OTHER);
dog1.show();
dog2.show();
dog3.show();
return 0:

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