ostream & operator<< (ostream & os, const Student & t){ os << t.m_id; os << t.m_name; os << t.m_sex; return os; if (t.m_time == NULL) { return os; }}
//:\c or c++ project\randomcall\student.cpp(40) : error C2248: 'm_id' : cannot access private member declared in class 'Student' d:\c or c++ project\randomcall\student.h(14) : see declaration of 'm_id' d:\c or c++ project\randomcall\student.cpp(41) : error C2248: 'm_name' : cannot access private member declared in class 'Student' d:\c or c++ project\randomcall\student.h(15) : see declaration of 'm_name' d:\c or c++ project\randomcall\student.cpp(42) : error C2248: 'm_sex' : cannot access private member declared in class 'Student' d:\c or c++ project\randomcall\student.h(16) : see declaration of 'm_sex' d:\c or c++ project\randomcall\student.cpp(46) : error C2248: 'm_time' : cannot access private member declared in class 'Student' d:\c or c++ project\randomcall\student.h(17) : see declaration of 'm_time' d:\c or c++ project\randomcall\student.cpp(55) : error C2248: 'm_time' : cannot access private member declared in class 'Student' d:\c or c++ project\randomcall\student.h(17) : see declaration of 'm_time' d:\c or c++ project\randomcall\student.cpp(57) : error C2248: 'm_time' : cannot access private member declared in class 'Student' d:\c or c++ project\randomcall\student.h(17) : see declaration of 'm_time' d:\c or c++ project\randomcall\student.cpp(59) : error C2248: 'm_time' : cannot access private member declared in class 'Student' d:\c or c++ project\randomcall\student.h(17) : see declaration of 'm_time' d:\c or c++ project\randomcall\student.cpp(61) : error C2248: 'm_time' : cannot access private member declared in class 'Student' d:\c or c++ project\randomcall\student.h(17) : see declaration of 'm_time' d:\c or c++ project\randomcall\student.cpp(63) : error C2248: 'm_time' : cannot access private member declared in class 'Student' d:\c or c++ project\randomcall\student.h(17) : see declaration of 'm_time' d:\c or c++ project\randomcall\student.cpp(65) : error C2248: 'm_time' : cannot access private member declared in class 'Student' d:\c or c++ project\randomcall\student.h(17) : see declaration of 'm_time'