![]() |
#2
yuccn2012-12-12 21:58
|
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;
}
大概情况就是这样的情况,为啥不能用‘=’呀。。。