题目内容

有如下的程序:#include <cstring.h>#include <iostream. h>using namespace std;class MyString public: MyString(const char*s); ~MyString() delete[]data; protected: unsigned len; char*data;;MyString::MyString(const char *s) len=strlen(s); data=new char[len+ 1]; strcpy(data, s);int main() MyString a("C++ Programing"); MyString b(a); return0;在运行上面的程序时出错,出错的原因是( )。

A. 构造函数的实参不允许是本类的对象
B. 没有定义实现深层复制(深拷贝)的复制构造函数
C. 构造对象a时实参与形参类型不符
D. 系统不能生成默认的复制构造函数

查看答案
更多问题

In North America, the United States and Canada have eliminated virtually all trade barriers, while similar efforts have been made among the members of the European Community. Cooperation is less extensive in East Asia, where Japanese industries tend to set the lead in exporting industrial goods to other countries. The free movement of most products across the borders has led to closer integration of industries within North America and Western Europe. For example, traditionally, most automobiles sold in Canada were manufactured in Canada, but now most automobiles sold in Canada are assembled in the United States. On balance, however, Canada exports twice as many automobiles to its southern neighbor as it imports. Every Chevrolet Caprice and Ford Taurus sold in Canada is actually assembled in the United States, but every Chevrolet Lumina and Ford Crown Victoria sold in the United States is actually assembled in Canada. At the same time they have promoted internal cooperation, the three trading blocs have erected barriers to restrict the ability of industries from other regions to compete effectively. European Community members slap a tax on goods that were produced in other countries. Japan has lengthy permit procedures that effectively hinder foreign companies from selling there. The Japanese government maintains quotas on the number of automobiles its companies can export to the United States in order to counter charges of unfair competition. Transnational corporations Industries within relatively developed countries are increasingly controlled by large transnational corporations, sometimes called multinational corporations. A transnational corporation operates factories in countries other than the one in which its headquarters is located. Initially, transnational corporations were primarily American-owned, but in recent years Japanese, German, and other European companies have been active as well. Some transnational corporations locate factories in other countries to expand their markets. Manufacturing the product where it is to be sold overcomes the restrictions that many countries place on imports. Furthermore, given the lack of economic growth in many relatively developed countries, a corporation may find that the only way it can increase sales is to move into another country. Transnational corporations also open factories in countries with lower-cost site factors, in order to reduce production costs. The site factor that varies among countries most dramatically is labor. Japanese transnational corporations have been especially active in the United States in recent years. Several hundred Japanese-owned corporations have built factories in the United States, primarily to develop new markets for electronics, automotive components, and metal products. Most of these plants have been located in a handful of interior states, including Ohio, Indiana, Kentucky, Michigan, Tennessee, and Illinois. According to the passage, there is not much cooperation in East Asia because ______.

A. many countries in East Asia are politically hostile to Japan
B. few countries in this region could match Japan in export
C. the governments are not aware of the necessity
D. there is no agreement on the elimination of trade barriers

In North America, the United States and Canada have eliminated virtually all trade barriers, while similar efforts have been made among the members of the European Community. Cooperation is less extensive in East Asia, where Japanese industries tend to set the lead in exporting industrial goods to other countries. The free movement of most products across the borders has led to closer integration of industries within North America and Western Europe. For example, traditionally, most automobiles sold in Canada were manufactured in Canada, but now most automobiles sold in Canada are assembled in the United States. On balance, however, Canada exports twice as many automobiles to its southern neighbor as it imports. Every Chevrolet Caprice and Ford Taurus sold in Canada is actually assembled in the United States, but every Chevrolet Lumina and Ford Crown Victoria sold in the United States is actually assembled in Canada. At the same time they have promoted internal cooperation, the three trading blocs have erected barriers to restrict the ability of industries from other regions to compete effectively. European Community members slap a tax on goods that were produced in other countries. Japan has lengthy permit procedures that effectively hinder foreign companies from selling there. The Japanese government maintains quotas on the number of automobiles its companies can export to the United States in order to counter charges of unfair competition. Transnational corporations Industries within relatively developed countries are increasingly controlled by large transnational corporations, sometimes called multinational corporations. A transnational corporation operates factories in countries other than the one in which its headquarters is located. Initially, transnational corporations were primarily American-owned, but in recent years Japanese, German, and other European companies have been active as well. Some transnational corporations locate factories in other countries to expand their markets. Manufacturing the product where it is to be sold overcomes the restrictions that many countries place on imports. Furthermore, given the lack of economic growth in many relatively developed countries, a corporation may find that the only way it can increase sales is to move into another country. Transnational corporations also open factories in countries with lower-cost site factors, in order to reduce production costs. The site factor that varies among countries most dramatically is labor. Japanese transnational corporations have been especially active in the United States in recent years. Several hundred Japanese-owned corporations have built factories in the United States, primarily to develop new markets for electronics, automotive components, and metal products. Most of these plants have been located in a handful of interior states, including Ohio, Indiana, Kentucky, Michigan, Tennessee, and Illinois. Which of the following is TRUE of multinational corporations

All of them have their headquarters in North America.
B. Labor is an important factor in determining the sites of factories to be built.
C. The Japanese have built their plants primarily along the coasts of the U.S.
D. Goods manufactured in local plants are viewed as imports in some countries.

有如下程序:#include<iostream.h>void main()int x=2,y=3,a,b,c,d;a=(x++>=--y);b=(x==++y);c=(x--!=y);d=(++x>y--);Cout<<a<<b<<c<<d<<end1;则程序执行后变量a,b,c,d的值分别是 【12】 。

TEXT E No one person has done more to shape modern sexual values in America and therefore the Western world —than Dr. Alfred Kinsey. The researcher’s ground-breaking 1949 study, "Sexual Behaviour in the Human Male", which followed by its companion work on females, tore aside the curtain of silence on sexuality and lifted the taboos on talking freely about what popular culture would previously only refer to as "makin’ whoopee". Kinsey’s research into what makes us tick in the bedroom not only laid the groundwork for the 1960s sexual revolution, but also did the same for much of the theory behind modern-day sex education. After Sigmund Freud made his career reminding us how repressed we were, Kinsey grabbed the baton and went on to show us what we could do about it. But now his post-war glory has faded and conservative critics point to AIDS, drugs and other social ills as natural products of 1960s counter-culture. Kinsey’s star is on the wane; indeed, new allegations, some of them partly justified, are not only casting doubt on his scientific methods, but asking whether the good doctor should have been thrown in jail as a child abuser. The anti-Kinsey ball started rolling in the 1980s when a researcher called Judith Reisman published a book, Kinsey, Sex and Fraud, questioning his methods, especially using a large number of convicts, and unconventional and promiscuous interviewees in his research, while claiming that his eventual findings on sexual nature were representative of average, heterosexual citizens. This theme was taken up late last year by the Family Research Council in Washington, possibly the United States’ most influential group lobbying for traditional, Christian family values. Kinsey is a natural target for the organisation, since it believes that the researcher’s aim was nothing less than the destruction of traditional moral values and the initiation of a new order of free-love. The council has just won a small victory. It recently produced a video and booklet asking serious questions about a section in Kinsey’s work in which he produced statistics on the rate of sexual climax for children as young as four months. While it now seems incredible that no one in 1949 bothered to ask how Kinsey could possibly know how young boys were reaching climax, the council finally did. The video demanded to know what experiments Kinsey did, whether they involved criminal abuse, and where those victims are now. Since Kinsey had long gone, it was left to the Kinsey Institute at Indiana University to speak on his behalf. Its director revealed a long-standing secrets no, the great man had not laid his hands on any youngsters, he said, all his information came from one single source: a paedophile who had had sex with over 300 boys. The admission has cast serious doubt on the famous doctor’s credentials (the child molester in the study conveniently died in 1955) and provided ammunition to those who wish to demonise his entire legacy. Evidence that the anti-Kinsey movement was gaining ground came in 1994, when President Bill Clinton had to sack his Surgeon General, Joycelyn Elders, for making the Kinseyesque remark that schoolchildren should be made aware of masturbation. Now, the father of free love must be squirming in his grave. According to the information in paragraph 2, Kinsey is ______ today in America.

A. regarded with suspicion
B. more popular than ever
C. a rising star
D. as popular as in the 1950s

答案查题题库