构造函数不是这样构造的,你都还没创建对象,怎么能用 t1(a,b,c,d,e,f);呢?
改成如下的就OK了:
Teacher_Cadre(string a,int b,char c,string d,string e,string f,string g,int h)
{
//t1(a,b,c,d,e,f); // error C2064: term does not evaluate to a function
//c1(a,b,c,d,e,g); // error C2064: term does not evaluate to a function
Teacher(a,b,c,d,e,f);
Cadre(a,b,c,d,e,f);
wages=h;
}
自己再好好想想,参考下书~