【正确答案】正确答案:(1)添加语句:char bloodType; (2)添加语句:CHumanInfo(int ht=175,int wt=7 0,char bt:’A’) (3)添加语句:void CHumanInfo::SetInfo(int ht,int wt,char bt) (4)添加语句:h2.SetInfo(170,64,'B');
【答案解析】解析:类CHumanlnfo有3个成员变量:用于表示血型的bloodType、表示身高的height和表体重的weight,成员函数GetHeight()返回height值,GetWeight()返回weight值,GetBloodType()返回bllodType值,Setlnfo(int ht,int wt,char bt)可改变bloodType、height和weight值,成员函数Display()在屏幕上打印三个成员变量值。