下列程序段执行后,m的值为______。 int a=0, b=20, c=40, m=60; if (a) m=a; else if(b) m=b; else if(c) m=c;
A.0
B.20
C.40
D.60
A.0
B.20
C.40
D.60
第1题
A、A
B、B
C、C
D、D
第2题
第3题
A.97
B.84
C.90
D.78
第4题
include <iostream>
using namespace std;
class sample
{
int x;
public:
sample(){}
void setx(int i)
{
x=i;
}
friend iht fun(sample B[],int n)
{
int m=0;
for{int i=0;i<n;i++)
if(B[i].x>m)
m=B[i].x;
return.m;
}
};
int main ( )
{
sample A[10];
int arr[]={90,87,42,78,97,84,60,55,78,65};
for(int i=O;i<10;i++)
A[i].setx(arr[i]);
cout<<fun(A, 10)<<end1;
return 0;
}
该程序运行后的输出结果是【 】。
第5题
When I turned a street (56) I heard the voice of a lovely Spanish singer (57) from a nearby cafe. The music (58) me, so I went to the cafe to hear it (59) I sat down at a table near the door. The waiter came over, and I (60) a glass of wine.
While (61) my wine, I listened to the soft music.The (62) was a young lady, a little too fat, but (63) pretty. A black young man was playing the piano.
The waiter returned (64) the glass of wine and put it on the (65) . I started drinking the wine slowly and (66) the other people in the cafe. They were ail men (67) women seldom go into the cafes in Spain.
There were three men (68) at a table near mine. I could (69) by their accents that one of them was an American, one an Englishman and the third man a (70) . The waiter served each of the three men a glass of beer. By chance, each glass had a (71) in it. The American picked up his glass, noticed the fly and poured the beer and the fly was thrown onto the floor. The English man looked into his glass, noticed the fly and (72) a spoon, with which he took the fly out of the beer, and drank the (73) of it.
The stranger noticed the fly in the beer, (74) . He picked it up with his fingers, squeezed it carefully in order to save every drop of beer, then drank the beer (75) .
(71)
A.shop
B.sidewalk
C.comer
D.store
第6题
When I turned a street【56】I heard the voice of a lovely Spanish singer【57】from a nearby cafe. The music【58】me, so I went to the cafe to hear it【59】.
I sat down at a table near the door. The waiter came over, and I【60】a glass of wine.
While【61】my wine, I listened to the soft music. The【62】was a young lady, a little too fat, but【63】pretty. A black young man was playing the piano.
The waiter returned【64】the glass of wine and put it on the【65】. I started drinking the wine slowly and【66】the other people in the cafe. They were all men【67】women seldom go into the cafes in Spain.
There were three men【68】at a table near mine. I could【69】by their accents that one of them was an American, one an Englishman and the third man a【70】. The waiter served each of the three men a glass of beer. By chance, each glass had a【71】in it. The American picked up his glass, noticed the fly and poured the beer and the fly was thrown onto the floor. The English- man looked into his glass, noticed the fly and【72】a spoon, with which he took the fly out of the beer, and drank the【73】of it.
The stranger noticed the fly in the beer,【74】. He picked it up with his fingers, squeezed it carefully in order to save every drop of beer, then drank the beer【75】.
(36)
A.shop
B.sidewalk
C.corner
D.store
第7题
Typically, a local newspaper would expect to get some 80% of its revenue from advertising, of which around two-thirds would come from classifieds. But last year in the San Francisco Bay area, job ads worth some $60m were lost from newspapers to the web, reckons Classified Intelligence, a consultancy. Emap, a British publisher, recently gave warning of a 30% decline in recruitment ads in one of its titles, Nursing Times, following the launch of a free website for jobs in Britain's National Health Service.
The Internet has become the fastest-growing advertising medium. Online ad revenues reached $5.8 billion in the first six months of this year in America, up 26% on the same period last year, according to a joint study by the Interactive Advertising Bureau and Pricewaterhouse-Coopers. In Britain, online ad revenues surged by 62% in the same period to almost £500m ($870m).
Search advertising—the small text-ads that appear alongside Google and Yahoo! searches—ac count for 40% of the online ad market. Another 20% goes to display ads and 18% to classified advertising. But search advertising can also work like a small ad and will increasingly challenge print classifieds as websites develop localized and more elaborate services for online users.
Perhaps the most significant development came on November 16th, when Google started up a prototype service called Google Base. It offers a searchable database of free listings, including small ads which can be narrowed down to postal regions. Among its first Offerings were used cars. In no time, Google could challenge eBay, whose own auction listings now work much like a giant classified website—especially with its "buy-it-now" options. But eBay charges sellers. Even so, it sold more than 450m items in the three months to September 30th, for almost $11 billion.
In response, most print publishers are expanding online. Mr. Murdoch is buying websites including Propertyfinder and MySpace, a social-networking site. Newspaper groups have teamed up to jointly operate websites to compete with Monster for recruitment ads. But the online operators are expanding too. eBay, for instance, is building a global network of classified sites under the Kijiji brand. It also has a stake in the popular Craigs-list which, having soaked up so many listings around its San Francisco home, is now frightening other newspapers as it expands its mostly-free ads service to other cities around the world.
By saying "the golden rivers are being diverted", the author means
A.newspapers earn a lot from ads.
B.the money flow like rivers into websites.
C.newspapers began to share the ad revenues with websites.
D.websites took away many ad revenues from newspapers.
第8题
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!