64,649
社区成员
发帖
与我相关
我的任务
分享
#include<iostream>
#include<string>
using namespace std;
class poke
{
string cor;
public:
poke(string a):cor(a){}
void sc();
string get();
};
void sc()
{
cout<<this.get();
}
string get()
{
return this.cor;-------------------------------------为什么这里有错详解一下
}
void Main()
{
poke POKE("hong ");
POKE.sc();
}
string poke::get()
{
return this.cor;
}