monty
2008-12-30 18:52:38 UTC
However, when I try to compile the test program it doesn't work! The interface is ITEM1.h, the implementation is ITEM1.cpp, and I've got the #include "ITEM1.h" in the test program. The error is something to do with StockItem::StockItem() (which is the class, with the default constructor) not being defined correctly. If I copy and paste the stuff from the implementation file into the test program, above main(), it works.
Why isn't it realizing where the implementation .cpp file is? Is it my fault? A compiler error? Something I haven't specified? ANY help would be appreciated.
Thanks in advance!