问题 单项选择题

下列描述错误的是( )。

A) 过程级变量是指在过程或函数内部定义的变量,这种变量的作用域是整个过程或函数体,只能在该过程或该函数体被引用
B) 某一函数若要引用在其他函数中定义的变量,只有将变量定义为Static型即可
C) 窗体级变量在该窗体中的每个过程都可以引用
D) 若要在某一窗体内定义的窗体级变量能够在另一窗体内应用,只需要Public声明

答案

参考答案:B

解析: Static为静态变量,不释放但是作用域仅是函数自身。若是希望不同函数之间使用同一变量只能是定义全局变量。

单项选择题
单项选择题

Manners nowadays in metropolitan cities like London are practically non-existent. It is nothing for a big, p schoolboy to elbow an elderly woman aside in the dash for the last remaining seat on the tube or bus, much less stand up and offer his seat to her, as he ought. In fact, it is saddening to note that if a man does offer his seat to an older woman, it is nearly always a Continental man or one from the older generation.

This question of giving up seats in public transport is much argued about by young men, who say that, since women have claimed equality, they no longer deserve to be treated with courtesy, and that those who go out to work should take their turn in the rat race like anyone else. Women have never claimed to be physically as p as men. Even if it is not agreed, however, that young men should stand up for younger women, the fact remains that courtesy should be shown to the old, the sick and the burdened.

Conditions in travel are really very hard on everyone, we know, but hardship is surely no excuse. Sometimes one wonders what would have been the behavior of these stout young men in a packed refugee train or a train on its way to a prisoner-camp during the war. Would they have considered it only right and their proper due to keep the best places for themselves then

Older people, tired and irritable from a day’s work, are not angels, either--far from it. Many a brisk argument or an insulting quarrel breaks out as the weary queues push and shove each other to get on buses and tubes. One cannot commend this, of course, but one does feel there is just a little more excuse.

If cities are to remain pleasant places to live in at all, however, it seems urgent, not only that communications in transport should be improved, but also that communication between human beings should be kept smooth and polite. All over cities, it seems that people are too tired and too rushed to be polite. Shop assistants won’t bother to assist, taxi drivers shout at each other as they dash dangerously round corners, bus conductors pull the bell before their desperate passengers have had time to get on or off the bus, and so on and so on. It seems to us that it is up to the young and p to do their small part to stop such deterioration.

From what you have read, would you expect manners to improve among people who()

A. are physically p

B. live in big modern cities

C. are from the older generation

D. live only in metropolitan cities