我的整文件是对的,但是按照老师说的拆分成分文件就报错?
错误 1 error C2065: “Teacher”: 未声明的标识符 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 9
错误 2 error C2146: 语法错误: 缺少“;”(在标识符“t”的前面) d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 9
错误 3 error C2065: “t”: 未声明的标识符 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 9
错误 4 error C2065: “t”: 未声明的标识符 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 10
错误 5 error C2228: “.setName”的左边必须有类/结构/联合 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 10
错误 6 error C2065: “t”: 未声明的标识符 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 11
错误 7 error C2228: “.setGender”的左边必须有类/结构/联合 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 11
错误 8 error C2065: “t”: 未声明的标识符 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 12
错误 9 error C2228: “.setAge”的左边必须有类/结构/联合 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 12
错误 10 error C2065: “t”: 未声明的标识符 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 13
错误 11 error C2228: “.getName”的左边必须有类/结构/联合 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 13
错误 12 error C2065: “t”: 未声明的标识符 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 13
错误 13 error C2228: “.getAge”的左边必须有类/结构/联合 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 13
错误 14 error C2065: “t”: 未声明的标识符 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 13
错误 15 error C2228: “.getGender”的左边必须有类/结构/联合 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 13
错误 16 error C2065: “t”: 未声明的标识符 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 14
错误 17 error C2228: “.teach”的左边必须有类/结构/联合 d:\visual studio 2010 projects1\imooc fz5-2\imooc fz5-2\5-2-0.cpp 14