int main(){Manager m1;Technician t1;Salesman s1;Salesmanager sm1;Employee * em[4]={&m1,&t1,&s1,&sm1};cout<<"上述人员的基本信息:"<for(int i = 0;i<4;i++) //你这个i没初始化{em[i]->pay();em[i]->display();}return 0;}