error C2659: '=' : overloaded function as left operand怎么解决啊,新手求助
class Human {
public:
string work;
Human();
~Human();
virtual string work() = 0;
};
class Student:public Human
{
public:
Student(string a);
string work();
};
//--------------------------------------------------
Student::Student(string a)
{
work = a;
}
大概情况就是这样的情况,为啥不能用‘=’呀。。。