Add and subtract has return type int. You are not returning an int (or anything) from these functions. If you want them to return int you will have to add a return statement (e.g. return 1;). If you don't want them to return anything change the return type to void.
The default constructor is the constructor with no parameters. You have not defined the default constructor and you have not defined the destructor.
1 2 3 4 5 6 7 8 9
CDistance::CDistance()
{
// put code here.
}
CDistance::~CDistance()
{
// put code here.
}
Im looking at an example my teacher has and mine is very similar and hers runs. I keep getting this error
1>inc13.obj : error LNK2019: unresolved external symbol "public: __thiscall CDistance::~CDistance(void)" (??1CDistance@@QAE@XZ) referenced in function _main
1>inc13.obj : error LNK2019: unresolved external symbol "public: __thiscall CDistance::CDistance(void)" (??0CDistance@@QAE@XZ) referenced in function _main