Linking...
7.obj : error LNK2001: unresolved external symbol "public: void __thiscall SalesPerson::printAnnualSales(void)" (?printAnnualSales@SalesPerson@@QAEXXZ)
7.obj : error LNK2001: unresolved external symbol "public: void __thiscall SalesPerson::getSalesFromUser(void)" (?getSalesFromUser@SalesPerson@@QAEXXZ)
7.obj : error LNK2001: unresolved external symbol "public: __thiscall SalesPerson::SalesPerson(void)" (??0SalesPerson@@QAE@XZ)
Debug/7.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

7.exe - 4 error(s), 0 warning(s)

你是不是也碰到这样的问题了?
这个问题困惑着我两周多了,让我差点就觉得不是学习C++的料了.
不过最近我终于找到了解决的办法:
打个VC,
open 你的头文件,
编译头文件,
open类的定义文件,
编译,
open实现类的文件.
编译,
运行,
OK!!!!!!!!!!