我正在编写一个显示矩形和三角形形状的程序,并计算这些形状的面积。我使用的是 Microsoft Visual Studio。这些是我的代码:
我有四个代码和错误列表的图像:Shapes.h、shapesfunchtions3.h、shapes3.cpp 和 testshapes3.cpp
但我得到这个错误:有什么解决办法吗?
如果您看不到错误列表的图像,那么它是这样的:
错误 1
错误 LNK2019:在函数“public: char __thiscall Shapes::SelectShape(void)”(?SelectShape@Shapes@ @QAEDXZ) C:\Users\Eduardo\Documents\Mission College\Projects\shapes3\shapes3\shapes3.obj
错误 2
错误 LNK2019:在函数“public: char __thiscall Shapes::SelectShape(void)”(?SelectShape@Shapes@ @QAEDXZ) C:\Users\Eduardo\Documents\Mission College\Projects\shapes3\shapes3\shapes3.obj
错误 3
错误 LNK2019:在函数“public: char __thiscall Shapes::SelectShape(void)”(?SelectShape@Shapes@ @QAEDXZ) C:\Users\Eduardo\Documents\Mission College\Projects\shapes3\shapes3\shapes3.obj
错误 4
错误 LNK1120:3 个未解决的外部 C:\Users\Eduardo\Documents\Mission College\Projects\shapes3\Debug\shapes3.exe