请使用VC6或使用[答题]菜单打开考生文件夹proj1下的工程proj1,此工程中含有一个源程序文件proj1.cpp。其中位于每个注释“//ERROR ****found****”之后的一行语句存在错误。请改正这些错误,使程序的输出结果为: Base:Good Luck! Derived:Good Luck! 注意:只修改注释“//ERROR ****found****”的下一行语句,不要改动程序中的其他内容。 //praj1.cpp #include <iostream> #include <cstring> using namespace std; class Base { // ERROR ******** found******** private: char* msg; public: Base(char* str) { // ERROR ******** found******** msg:new char[strlen(str)]; strcpy (msg, str); cout << "Base: " <<msg << endl; } // ERROR ******** found******** ~Base() { delete msg; } }; class Derived:public Base { public: Derived (char* str):Base(str) {} void Show () { cout <<"Derived:" <<msg << endl; } }; int main ( ) { Derived obj ("Good Luck! "); obj.Show(); return 0; }
查看答案
Psychologists, neurologists and linguists have concluded that, in addition to the motor area which is responsible for physical articulation of utterances, three areas of the left brain are vital to language, namely, ______.
A. Broca’s area, Wernicke’s area and the angular gyrus
Broca’s area, Wernicke’s area and cerebral cortex
C. Broca’s area, Wernicke’s area and neurons
D. Broca’s area, Wernicke’s area and Exner’s area
请使用VC6或使用[答题]菜单打开考生文件夹proj2下的工程proj2,函数void Insert(node*q)使程序能完成如下功能:从键盘输入一行字符,调用该函数建立反序单链表,再输出整个链表。 注意:请勿修改主函数main和其他函数中的任何内容,只需在横线处编写适当代码,也不要删除或移动“//****found****”。 //proj2.cpp #include <iostream> using namespace std; struct node { char data; node * link; } * head; //链表首指针 void Insert (node * q) //将节点插入链表首部 { //******** found******** ______; head = q; } int main ( ) { char ch; node * p; head = NULL; cout <<"Please input the string" <<endl; while((ch=cin.get()) !=’\n’) { //******** found******** ______; //用new为节点p动态分配存储空间 p ->data = ch; //******** found******** ______; //插入该节点 } p=head; while (p!=NULL) { cout <<p -> data; p=p->link; } cout << endl; return 0; }
The case of Phineas Gage showed as that ______.
A. human language ability is not located in the brain because Phineas’ brain was so damaged, he could still speak
B. human language ability is located in the right hemisphere of the brain
C. if human language ability is located in the brain, it is situated right at the front
D. if human language ability is located in the brain, it is not situated right at the front
有先后天关系的两脏是
A. 肝与肾
B. 肾与脾
C. 肾与肺
D. 肾与心
E. 心与肝