编译成功却运行不了,怎么回事?
下面是VC6的提示
--------------------Configuration: main - Win32 Debug--------------------
Linking...
main.obj : error LNK2001: unresolved external symbol "double __cdecl grade(struct Student_info const &)" (?grade@@YANABUStudent_info@@@Z)
main.obj : error LNK2001: unresolved external symbol "class std::basic_istream<char,struct std::char_traits<char> > & __cdecl read(class std::basic_istream<char,struct std::char_traits<char> > &,struct Student_info &)" (?read@@YAAAV?$basic_istream@D
U?$char_traits@D@std@@@std@@AAV12@AAUStudent_info@@@Z)
Debug/main.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
main.exe - 3 error(s), 0 warning(s)