问题 填空题

使用VC++6.0打开考生文件夹下的源程序文件1.cpp,该程序运行时有错,请改正错误,使得程序正确执行,并且输出以下语句:
TC1:0
TC2
注意:不要改动main函数,不能增加或删除行,也不能更改程序的结构,错误的语句在//******error******的下面。
试题程序:
#include<iostream.h>
struct TC1

TCl(int i=0)

m_i=i;

void print()

cout<<"TC1:"<<m_i<<end1;

int m_i;

class TC2

public:
TC2()


void print()

cout<<"TC2"<<end1;

//********error********
private:
~TC2()



int main()

//********error********
TC1 obj1();
//********error********
TC2 ohj2();
obj1.print();
ohj2.print();
return 0;

答案

参考答案:应改为“public:”。

阅读理解

A Christina from Spain

On the last day of the year, the 31st of December, people wait till 12 pm. Everybody must have 12 grapes(葡萄) to eat at midnight. At each sound of the clock, we must eat a group. But we can’t ever finish eating the grapes on time! Usually when people still have some grapes in their mouths, they look at each other and start to laugh. This tradition started in Spain long ago. One year, when there were a lot of grapes, the king of Spain decided to give grapes to everybody to eat on New Year’s Eve.

B Cordon from Britain

On New Year’s Day in Britain, people have parties. At 12 o’clock, the music stops, and we listen to the radio. On the radio we hear Big Ben, the famous clock in London. Then everybody sings a song about friendship and kisses their friends. We say “Happy New Year” to each other. It’s lucky if a tall man with dark hair is the first person to come to the house in the new year. So I go and visit as many friends as I can. They all give me a drink.

C Angela from Brazil

In all cities in Brazil, we have a big party on New Year’s Eve, especially in Rio de Janeiro. People in this city go to the beaches to watch fireworks(焰火)。We put flowers in the sea and think about things we want for ourselves or others. We usually wear white clothes for good luck during the New Year.

小题1:Picture___________ is about paragraph 1.

小题2:Who have parties on New Year’s Day?

A. People in Spain.  B. People in Britain.

C. People in Brazil.  D. Both B and C.

小题3:From the 2nd paragraph, we can infer (推断)that___________.

A.People listen to the radio at home.

B.Cordon can’t drink much.

C.Cordon is a tall man with dark hair.

D.there are no people near Big Ben.小题4: On New Year’s Day, Brazilians usually wear white clothes because_________.

A.that reminds them of their happy life

B.they hope that can bring them good luck

C.they think that they look beautiful in white

D.that’s what they have to do during the New Year小题5:This article mainly tells us ________________.

A.what people in Britain do on New Year’s Day

B.when and where people have New Year parties

C.why people in different countries like the New Year

D.what people around the world do on New Year’s Day

单项选择题