问题 填空题

Staff类含有血型数据成员ID,两个Staff对象相等是指它们的ID相同。下面的函数重载了运算符==,它用来判断两个Staff对象是否相等,相等时返回true,否则返回false。
请将横线处缺失部分补充完整。
bool Staff::Staff==(const Staff &s)

return (______);

答案

参考答案:ID==s.ID或s.ID==ID或this ->ID==s.ID或s.ID==this->ID

解析: 本题考核运算符的重载。运算符“==”作为成员函数重载,所以在横线处填入的表达式应该为对象本身ID与对象sID的比较表达式,即ID==s.ID。

单项选择题 案例分析题

东海股份有限公司(以下称东海公司)为增值税一般纳税人,东海公司20×7年、20×8年长期股权投资业务等有关资料如下:

(1)20×7年1月1日,东海公司应收北方公司账款的账面余额为2300万元,已计提坏账准备200万元。由于北方公司发生财务困难,东海公司与北方公司达成债务重组协议,同意北方公司以银行存款200万元、B专利权和所持有的南洋公司长期股权投资抵偿全部债务。根据北方公司有关资料,B专利权的账面价值为500万元,已计提资产减值准备100万元,公允价值为500万元;持有的南洋公司长期股权投资的账面价值为800万元,公允价值(等于可收回金额)为1000万元。当日,东海公司与北方公司即办理完专利权的产权转移手续和股权过户手续,不考虑此项债务重组发生的相关税费。东海公司将所取得的专利权作为无形资产核算,并准备长期持有所取得的南洋公司股权(此前东海公司未持有南洋公司股权,取得后,持有南洋公司10%股权,采用成本法核算此项长期股权投资,取得时南洋公司可辨认净资产的公允价值为10000万元)。

(2)20×7年3月2日,南洋公司发放20×6年度现金股利,东海公司收到50万元现金股利;20×7年度,南洋公司实现净利润800万元,未发生其他引起所有者权益变动的事项。

(3)20×8年1月5日,东海公司以银行存款2500万元购入南洋公司20%股权,另支付10万元的相关税费。至此持股比例达到30%,改用权益法核算此项长期股权投资。20×8年1月5日南洋公司的可辨认净资产的公允价值为13000万元。

(4)20×8年3月2日,东海公司为奖励本公司职工按市价回购本公司发行在外普通股100万股,实际支付价款800万元(含交易费用);3月20日将回购的100万股普通股奖励给职工,奖励时按每股6元确定奖励股份的实际金额,同时向职工收取每股1元的现金。

根据上述资料,计算回答下列问题:

20×7年1月1日,东海公司因与北方公司进行债务重组,应确认的债务重组损失为()万元。

A.400 

B.600 

C.700 

D.900

单项选择题

Like every dog, every disease now seems to have its day. World Tuberculosis (infections disease in which growths appear on the lungs) Day is on Saturday March 24th.

Tuberculosis was once terribly fashionable. Dying of "consumption" seems to have been a favorite activity of garret-dwelling 19th-century artists, h has, however, been neglected of late. Researchers in the field never tire of pointing out that TB kills a lot of people. According to figures released earlier this week by the World Health Organization, 1.6 million people died of the disease in 2005, compared with about 3m for AIDS and l m for malaria. But it receives only a fraction of the research budget devoted to AIDS. America’s National Institutes of Health, for example, spends 20 times as much on AIDS as on TB. Nevertheless, everyone seems to getting in on the TB-day act this year.

The Global Fund an international organization responsible fur fighting all three diseases but best known for its work on AIDS, has used the occasion to trumpet its tuberculosis projects. The fund claims that its anti-TB activities since it opened for business in 2002 have saved the lives of over 1m people. The World Health Organization has issued a report that contains some good news. Although the number of TB cases is still rising, the rate of illness seems to have stabilized; the caseload, in other words, is growing only because the population itself is going up.

Even drug companies are involved. In the nm-up to the day itself, Eli Lilly announced a $ 50m boost to its MDRTB Global Partnership. MDR stands for multi-drug resistance, and it is one of the reasons why TB is back in the limelight. Careless treatment has caused drug-resistant strains to evolve all over the world. The course of drugs needed to clear the disease completely takes six mouths, anti persuading people lo stay that course once their symptoms have gone is hard. Unfortunately, those infected with MDR have to be treated with less effective, more poisonous and more costly drugs. Naturally, these provoke still more. non-compliance and thus still more evolution.

The other reason TB is back is its relationship to AIDS. The (global Fund’s joint responsibility for the diseases is no coincidence. AIDS does not kill directly. Rather, HIV, the virus that causes it, weakens the body’s immune system and exposes the sufferer to secondary infections. Of these, TB is one of the most serious. It kills 200 000 AIDS patients a year. However, some anti-TB drugs interfere with the effect of some anti-HIV drugs. Conversely, in about 20% of cases where a patient has both diseases, anti-HIV drugs make the tuberculosis worse. The upshot is that 125 years after human beings worked out what caused TB, it is still a serious threat.

Eli Lilly devoted itself to MDR-TB, because ()

A. TB kills more and more AIDS patients

B. TB has something to do with AIDS

C. multi-drug resistance makes Tuberculosis fashionable again

D. Eli Lilly is a member of the MDR-TB Global Partnership