题目内容

以下程序中函数f的功能是: 当flag 为1时,进行由小到大排序;当flag 为0时,进行由大到小排序。void f(int b[], int n, int flag){int i, j, t; for (i=0; i<n-1; i++) for (j=i+1; j<n; j++) if(flag b[!]>[j]: b[i]<b[j]) { t=b[i]; b[i]=b[j]; b[j]=t; }}main (){ int a[10]={5,4,3,2,1,6,7,8,9,10}, i; f(&a[2], 5, 0); f(a, 5, 1), for (i=0; i<10; i++) printf("%d,", a[i]);}程序运行后输出结果是( )。

A. 1,2,3,4,5,6,7,8,9,10,
B. 3,4,5,6,7,2,1,8,9,10,
C. 5,4,3,2,1,6,7,8,9,10,
D. 10,9,8,7,6,5,4,3,2,1,

查看答案
更多问题

Remember Second Life, the virtual world that was supposed to become almost as important as the first one Now populated by no more than 84,000 avatars at a time, it has turned out to be a prime example of how short-lived Internet fads can be. Yet if many adults seem to have given up on virtual worlds, those that cater to children and teenagers are thriving. Several have even found a way to make money. In America, nearly 10 million children and teenagers visit virtual worlds regularly, estimates eMarketer, a market researcher-a number the firm expects to increase to 15 million by 2013.As in January, there were 112 virtual worlds designed for under-18s with another 81 in development, according to Engage Digital Media, a market research firm. All cater to different age groups and tastes. In Club Penguin, the market leader, which was bought by Disney in 2007 for a whopping $ 700 million, primary-school children can take on a penguin persona, fit out their own igloo and play games. Habbo Hotel, a service run from Finland, is a global hangout for teenagers who want to customise their own rooms and meet in public places to attend events. Gala Online, based in Silicon Valley, offers similar activities, but is visited mostly by older teens who are into Manga comics. Not a hit with advertisers, these online worlds earn most of their money from the sale of virtual goods, such as items to spruce up an avatar or a private room. They are paid for in a private currency, which members earn by participating in various activities, trading items or buying them with real dollars. This sort of stealth tax seems to work. At Gala Online, users spend more than $1 million per month on virtual items, says Craig Sherman, the firm’s chief executive. Running such a virtual economy is not easy, which is why Gaia has hired a full-time economist to grapple with problems that are well known in the real world, such as inflation and an unequal distribution of wealth. There are other barriers that could limit the growth of virtual worlds for the young, but the main one is parents. Many do not want their offspring roaming virtual worlds, either because they are too commercial or are thought to be too dangerous. Keeping them safe is one of the biggest running costs, because their sponsors have to employ real people to police their realms. Youngsters are also a fickle bunch, says Simon Levene of Accel Partners, a venture- capital firm. Just as children move from one toy to another, they readily switch worlds or social networks, often without saying goodbye. Even so, Debra Aho Williamson, an analyst at eMarketer, believes "these worlds are a training ground for the three-dimensional web". If virtual worlds for adults, which so far have been able to retain only hardcore users, manage to hang on for a few years, they may yet have a second life. What may "stealth tax" in "This sort of stealth tax seems to work" refer to

A. Online world promotes transaction without seeing the currencies, thus boosting the consumption.
B. Things in the online world do not need to be taxed, and then is cheaper than actual ones.
Companies have already paid the tax for the players.
D. People buy things in the online world in a largely unnoticed way, either by himself or by others.

The Lady with the LampBack to the middle of the 19th century, England was at war with Russia, and an English army was fighting the Russians in a place called the Crimea. Disturbing reports began coming to England, regarding the terrible conditions in the hospitals where the wounded men were being treated. At the time, Florence Nightingale was in charge of a small hospital in London. As soon as she heard of the conditions in the Crimea, she led 38 best nurses and made her way to the Crimea.When they arrived there, Miss Nightingale found conditions even worse than she had imagined. Everything was lacking. She and her nurses had to work very hard indeed. Miss Nightingale worked harder than anybody. She worked day and night to see that the wounded soldiers were well looked after and properly treated. Every night she walked around the hospital with a small lamp, visiting the patients. To the soldiers she was the "Lady with the lamp". And they worshipped her. One of them wrote, "What a comfort it was just to see her pass by. She would speak to one, smile to many more. She could not speak to all you know. We lay there by the hundreds, but we could kiss her shadow as it fell on the wall. " She even organized the cooking of the men’ s food and the washing of their clothes.Out of the hopeless confusion she brought order. The death rate fell from sixty per thousand patients to three per thousand. This was really a marvelous accomplishment she performed for her motherland. When she returned to England at the end of the war, she was warmly welcomed and honored by her people.When England was (46) Russia, an English army was fighting the RuSsians in the Crimea. Disturbing reports came to England about the terrible conditions (47) where the wounded were being treated. On hearing the conditions in the Crimea, Nightingale went there, with 38 best nurses. Everything was (48) , so they had to work very hard. Nightingale worked during the day and visited the Wounded with (49) at night. She brought comfort to the wounded, and (50) greatly dropped. When she returned home, she warmly welcomed and honored. 49()

One of the most famous tourist attractions in the State of California is the giant redwood. This redwood might be described as "the tree with the moving foot" because it is not even a native California, believe it or not!These trees, which are among the largest and oldest of all living things, moved to California from the Arctic. Long, long ago they grew in the Arctic, just as enormous and tall as they are today. But the warmer climate drew them southward and it took some seventy-five million years to complete the move.Carried by birds, winds, and some strong-teethed animals, the seeds of the redwood traveled thousands of miles from what is now the northern-most tip of Alaska to California, their last stand.Only the hardest seeds survived—a few that visited Eu- rope soon died out. But those that made it to California put down roots, grew into luxuriant ’forests, and became camera subjects for the hundreds of thousands of tourists who visit California’ s giant redwood each year. Where did these trees grow a long time ago()

2000年1月甲公司的高级工程师乙研制出一种节油装置,完成了该公司的技术攻坚课题,并达到国际领先水平。2000年2月甲公司将该装置样品提供给我国政府承认的某国际技术展览会展出。同年3月,乙未经单位同意,在向某国外杂志的投稿论文中透露了该装置的核心技术,该杂志将论文全文刊载,引起甲公司不满。同年6月,丙公司依照该杂志的报道很快研制了样品,并作好了批量生产的必要准备。甲公司于2000年7月向我国专利局递交专利申请书。2000年12月丁公司也根据该杂志开始生产该节油装置。2003年5月7日国务院专利行政部门授予甲公司发明专利,2003年7月甲公司向法院提起诉讼,分别要求丙公司和丁公司停止侵害并赔偿损失。 甲公司可以在起诉前向法院申请采取什么措施保护自己的合法权益?

A. 申请诉前禁令
B. 申请诉前先予执行
C. 申请诉前财产保全
D. 申请诉前证据保全

答案查题题库