全文预览

要打印的习题

上传者:你的雨天 |  格式:doc  |  页数:9 |  大小:56KB

文档介绍
ingAssistant(){cout<<"TeachingAssistant郑八destructed"<<endl;}Р void Show()Р {Р cout<<"Name:"<<TeachingAssistant::Name<<" ";Р cout<<"Gender:"<<TeachingAssistant::Gender<<" ";Р cout<<"Age:"<<TeachingAssistant::Age<<" ";Р cout<<"Number:"<<TeachingAssistant::Number<<" ";Р cout<<"ClassName:"<<TeachingAssistant::Classname<<" ";Р cout<<"TotalCount:"<<TeachingAssistant::TotalCount<<" ";Р cout<<"Score:"<<TeachingAssistant::Score<<" ";Р cout<<"CollegeName:"<<TeachingAssistant::CollegeName<<" ";Р cout<<"DepartmentName:"<<TeachingAssistant::DepartmentName<<" ";Р cout<<"Year:"<<TeachingAssistant::Year<<" ";Р cout<<"LectureName:"<<TeachingAssistant::LectureName<<endl;Р }Р void SetName(string name = "郑八"){Name = name;};Р};Рint main()Р{Р TeachingAssistant D;Р D.Show();Р D.SetName();Р D.Show();Р return 0;Р}

收藏

分享

举报
下载此文档