Compiling...
C5-3.CPP
E:\C++源代码\教材例题程序\C5\C5-3.CPP(25) : error C2248: 'num' : cannot access protected member declared in class 'Student'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(10) : see declaration of 'num'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(25) : error C2248: 'name' : cannot access protected member declared in class 'Student'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(11) : see declaration of 'name'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(25) : error C2248: 'sex' : cannot access protected member declared in class 'Student'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(12) : see declaration of 'sex'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(50) : error C2248: 'num' : cannot access protected member declared in class 'Student'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(10) : see declaration of 'num'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(50) : error C2248: 'name' : cannot access protected member declared in class 'Student'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(11) : see declaration of 'name'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(50) : error C2248: 'sex' : cannot access protected member declared in class 'Student'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(12) : see declaration of 'sex'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(50) : error C2248: 'age' : cannot access private member declared in class 'Student1'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(35) : see declaration of 'age'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(50) : error C2248: 'addr' : cannot access private member declared in class 'Student1'
E:\C++源代码\教材例题程序\C5\C5-3.CPP(36) : see declaration of 'addr'
执行 cl.exe 时出错.
C5-3.OBJ - 1 error(s), 0 warning(s)