Within the team, a work plan can tell each member what()and why.
A. is being done
B. has done
C. has been done
第1题:
使用VC6打开考生文件夹下的工程test14_1,此工程包含一个源程序文件test14_1.cpp,但该程序运行有问题,请改正程序中的错误,使该程序的输出结果如下:
member1=5member2=5
member1=7member2=9
源程序文件test14_1.cpp清单如下:
include<iostream.h>
class My Class
{
/************** found *****************
friend void setMember(MyClass myObj,char meml)
{
myObj.member1=mem1;
myObj.member2=mem1;
cout<<"member1="<<myObi.member1<<" member2="<<myObj.member2<<endl;
}
/************** found ***************/
void setMember(MyClass& myObj,char mem1,char mem2)
{
myObj.member1=mem1;
myObj.member2=mem2;
cout<<"member1:"<<myObj.member1<<"member2="<<myObj.member2<<endl;
}
private:
char member1;
char member2;
};
void main()
{
MyClass theObj;
/************** found ****************/
theObj.setMember(theObj,'5');
theObj.setMember(theObj,'7','9');
}
第2题:
第3题:
第4题:
使用VC6打开考生文件夹下的工程proj1。此工程包含一个源程序文件mainl.cpp,但该程序运行有问题。请改正主函数中的错误,使程序的输出结果是:
member = 0
member = 5
member = 10
源程序文件 mainl.cpp 清单如下:
//mainl.cpp
include <iostream>
using namespace std;
class MyClass
{
public:
MyClass(int i)
{
member=i;
}
void SetMember(int m)
{
member=m;
}
int GetMember()const
{
return member;
}
void Print() const
{
cout<<"member="<<member<<end1;
}
private:
int member;
};
int main()
{
/***************found***********/
MyClass obj1;
obj1. Print();
MyClass obj2(3);
/***************found***********/
obj1.member = 5;
/***************found***********/
MyClass. SetMember(10);
obj1. Print();
obj2. Print();
return 0;
}
第5题:
第6题:
语义网络的基本语义关系包括()。
A.实例关系(ISA)
B.分类关系(AKO)
C.成员关系(A-Member-of)
D.属性关系(Have或者Can)