拜托``` 测试结果 有点问题`呢`` cout<<"Goodbye!"<
要不我再看看``
#include
#include
class Welcome
{
public:
~Welcome()
{
if(pChar!=NULL)
{
delete[] pChar;
}
cout.write("Goodbye!",8);
cout<
Welcome ()
{
}
Welcome(Welcome &Wel)
{
for(int i=0;i<20;i++)
{
charArray[i]=Wel.charArray[i];
}
pChar=new char[20];
if(pChar==NULL)
cout<<"Error ! Memory!"<
}
void Display()
{
}
void talk()
{
cout<<"All right!"<
void Set(char* p)
{
cout<
char* Get()
{
cout<<"输入:";
cin.get(charArray,20);
cout<<"输出:";
cout.write(charArray,14);
cout<<"输入:";
cin.get(charArray,20);
cout<<"输出:";
cout.write(charArray,15);
cout<<"输入:";
cin.get(charArray,20);
return NULL;
}
private:
char charArray[20];
char *pChar;
};
摆脱 我是没本事搞成了`````
要办点事` 我得作业还没写完```
还有 LZ把测试内容搞清晰点 怎么看怎么像有问题
没问题的话就是出题目的人 他BT 嗨``
能把你的类成员函数的功能说明白一点吗?
你的测试结果,我没看明白。