哥哥你这个没法改,你还是重写吧,用工程来写
1>------ Build started: Project: luntan, Configuration: Debug Win32 ------
1>Compiling...
1>first.cpp
1>f:\mypro\c ++thinking\luntan\first.cpp(80) : error C2061: syntax error : identifier 'student'
1>f:\mypro\c ++thinking\luntan\first.cpp(222) : error C2296: '*' : illegal, left operand has type 'void (__cdecl *)(void)'
1>f:\mypro\c ++thinking\luntan\first.cpp(222) : error C2297: '*' : illegal, right operand has type 'student *'
1>f:\mypro\c ++thinking\luntan\first.cpp(222) : error C2062: type 'int' unexpected
1>f:\mypro\c ++thinking\luntan\first.cpp(223) : error C2143: syntax error : missing ';' before '{'
1>f:\mypro\c ++thinking\luntan\first.cpp(237) : error C2065: 'p' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(241) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(241) : error C2061: syntax error : identifier 'student'
1>f:\mypro\c ++thinking\luntan\first.cpp(242) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(242) : error C2228: left of '.ID' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(243) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(243) : error C2228: left of '.name' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(244) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(244) : error C2228: left of '.sex' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(245) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(245) : error C2228: left of '.age' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(246) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(246) : error C2228: left of '.call' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(247) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(247) : error C2228: left of '.sc1' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(248) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(248) : error C2228: left of '.sc2' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(249) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(249) : error C2228: left of '.sc3' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(250) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(250) : error C2228: left of '.sc4' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(251) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(251) : error C2228: left of '.sc5' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(252) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(252) : error C2228: left of '.ID' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(253) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(253) : error C2228: left of '.name' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(254) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(254) : error C2228: left of '.sex' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(255) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(255) : error C2228: left of '.age' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(256) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(256) : error C2228: left of '.call' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(257) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(257) : error C2228: left of '.sc1' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(258) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(258) : error C2228: left of '.sc2' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(259) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(259) : error C2228: left of '.sc3' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(260) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(260) : error C2228: left of '.sc4' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(261) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(261) : error C2228: left of '.sc5' must have class/struct/union
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(263) : warning C4091: '' : ignored on left of '<unnamed-type-classs> [4]' when no variable is declared
1>f:\mypro\c ++thinking\luntan\first.cpp(263) : error C2143: syntax error : missing ';' before '['
1>f:\mypro\c ++thinking\luntan\first.cpp(263) : error C2337: 'a' : attribute not found
1>f:\mypro\c ++thinking\luntan\first.cpp(263) : error C2143: syntax error : missing ';' before '.'
1>f:\mypro\c ++thinking\luntan\first.cpp(264) : warning C4091: '' : ignored on left of '<unnamed-type-classs> [4]' when no variable is declared
1>f:\mypro\c ++thinking\luntan\first.cpp(264) : error C2143: syntax error : missing ';' before '['
1>f:\mypro\c ++thinking\luntan\first.cpp(264) : error C2337: 'a' : attribute not found
1>f:\mypro\c ++thinking\luntan\first.cpp(264) : error C2143: syntax error : missing ';' before '.'
1>f:\mypro\c ++thinking\luntan\first.cpp(265) : warning C4091: '' : ignored on left of '<unnamed-type-classs> [4]' when no variable is declared
1>f:\mypro\c ++thinking\luntan\first.cpp(265) : error C2143: syntax error : missing ';' before '['
1>f:\mypro\c ++thinking\luntan\first.cpp(265) : error C2337: 'a' : attribute not found
1>f:\mypro\c ++thinking\luntan\first.cpp(265) : error C2143: syntax error : missing ';' before '.'
1>f:\mypro\c ++thinking\luntan\first.cpp(266) : warning C4091: '' : ignored on left of '<unnamed-type-classs> [4]' when no variable is declared
1>f:\mypro\c ++thinking\luntan\first.cpp(266) : error C2143: syntax error : missing ';' before '['
1>f:\mypro\c ++thinking\luntan\first.cpp(266) : error C2337: 'a' : attribute not found
1>f:\mypro\c ++thinking\luntan\first.cpp(266) : error C2143: syntax error : missing ';' before '.'
1>f:\mypro\c ++thinking\luntan\first.cpp(267) : warning C4091: '' : ignored on left of '<unnamed-type-classs> [4]' when no variable is declared
1>f:\mypro\c ++thinking\luntan\first.cpp(267) : error C2143: syntax error : missing ';' before '['
1>f:\mypro\c ++thinking\luntan\first.cpp(267) : error C2337: 'a' : attribute not found
1>f:\mypro\c ++thinking\luntan\first.cpp(267) : error C2143: syntax error : missing ';' before '.'
1>f:\mypro\c ++thinking\luntan\first.cpp(268) : warning C4091: '' : ignored on left of '<unnamed-type-classs> [4]' when no variable is declared
1>f:\mypro\c ++thinking\luntan\first.cpp(268) : error C2143: syntax error : missing ';' before '['
1>f:\mypro\c ++thinking\luntan\first.cpp(268) : error C2337: 'a' : attribute not found
1>f:\mypro\c ++thinking\luntan\first.cpp(268) : error C2143: syntax error : missing ';' before '.'
1>f:\mypro\c ++thinking\luntan\first.cpp(269) : warning C4091: '' : ignored on left of '<unnamed-type-classs> [4]' when no variable is declared
1>f:\mypro\c ++thinking\luntan\first.cpp(269) : error C2143: syntax error : missing ';' before '['
1>f:\mypro\c ++thinking\luntan\first.cpp(269) : error C2337: 'a' : attribute not found
1>f:\mypro\c ++thinking\luntan\first.cpp(269) : error C2143: syntax error : missing ';' before '.'
1>f:\mypro\c ++thinking\luntan\first.cpp(270) : warning C4091: '' : ignored on left of '<unnamed-type-classs> [4]' when no variable is declared
1>f:\mypro\c ++thinking\luntan\first.cpp(270) : error C2143: syntax error : missing ';' before '['
1>f:\mypro\c ++thinking\luntan\first.cpp(270) : error C2337: 'a' : attribute not found
1>f:\mypro\c ++thinking\luntan\first.cpp(270) : error C2143: syntax error : missing ';' before '.'
1>f:\mypro\c ++thinking\luntan\first.cpp(271) : warning C4091: '' : ignored on left of '<unnamed-type-classs> [4]' when no variable is declared
1>f:\mypro\c ++thinking\luntan\first.cpp(271) : error C2143: syntax error : missing ';' before '['
1>f:\mypro\c ++thinking\luntan\first.cpp(271) : error C2337: 'a' : attribute not found
1>f:\mypro\c ++thinking\luntan\first.cpp(271) : error C2143: syntax error : missing ';' before '.'
1>f:\mypro\c ++thinking\luntan\first.cpp(272) : warning C4091: '' : ignored on left of '<unnamed-type-classs> [4]' when no variable is declared
1>f:\mypro\c ++thinking\luntan\first.cpp(272) : error C2143: syntax error : missing ';' before '['
1>f:\mypro\c ++thinking\luntan\first.cpp(272) : error C2337: 'a' : attribute not found
1>f:\mypro\c ++thinking\luntan\first.cpp(272) : error C2143: syntax error : missing ';' before '.'
1>f:\mypro\c ++thinking\luntan\first.cpp(273) : warning C4091: '' : ignored on left of '<unnamed-type-classs> [4]' when no variable is declared
1>f:\mypro\c ++thinking\luntan\first.cpp(273) : error C2143: syntax error : missing ';' before '['
1>f:\mypro\c ++thinking\luntan\first.cpp(273) : error C2337: 'a' : attribute not found
1>f:\mypro\c ++thinking\luntan\first.cpp(273) : error C2143: syntax error : missing ';' before '.'
1>f:\mypro\c ++thinking\luntan\first.cpp(274) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(274) : error C2227: left of '->next' must point to class/struct/union/generic type
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(274) : error C2065: 'p' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(274) : error C2227: left of '->next' must point to class/struct/union/generic type
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(275) : error C2065: 'p' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(275) : error C2227: left of '->next' must point to class/struct/union/generic type
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(275) : error C2065: 'stu' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(278) : error C2065: 'p' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(278) : error C2065: 'p' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(278) : error C2227: left of '->next' must point to class/struct/union/generic type
1>
type is ''unknown-type''
1>f:\mypro\c ++thinking\luntan\first.cpp(288) : warning C4091: '' : ignored on left of '<unnamed-type-classs> [4]' when no variable is declared
1>f:\mypro\c ++thinking\luntan\first.cpp(288) : error C2143: syntax error : missing ';' before '['
1>f:\mypro\c ++thinking\luntan\first.cpp(288) : error C2337: 'a' : attribute not found
1>f:\mypro\c ++thinking\luntan\first.cpp(288) : error C2143: syntax error : missing ';' before '.'
1>f:\mypro\c ++thinking\luntan\first.cpp(291) : error C2296: '*' : illegal, left operand has type 'void (__cdecl *)(void)'
1>f:\mypro\c ++thinking\luntan\first.cpp(291) : error C2297: '*' : illegal, right operand has type 'student *'
1>f:\mypro\c ++thinking\luntan\first.cpp(291) : error C2062: type 'int' unexpected
1>f:\mypro\c ++thinking\luntan\first.cpp(292) : error C2143: syntax error : missing ';' before '{'
1>f:\mypro\c ++thinking\luntan\first.cpp(295) : error C2065: 'a' : undeclared identifier
1>f:\mypro\c ++thinking\luntan\first.cpp(295) : error C2275: 'classs' : illegal use of this type as an expression
1>
f:\mypro\c ++thinking\luntan\first.cpp(49) : see declaration of 'classs'
1>f:\mypro\c ++thinking\luntan\first.cpp(295) : error C2228: left of '.num' must have class/struct/union
1>f:\mypro\c ++thinking\luntan\first.cpp(295) : fatal error C1003: error count exceeds 100; stopping compilation
1>Build log was saved at "file://f:\MYpRO\C ++thinking\luntan\Debug\BuildLog.htm"
1>luntan - 102 error(s), 12 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========