My program calls for me to create a base class Clock, a derived class AccurateClock, and to access them in main, but I'm getting two "LNK2019: unresolved external symbol" errors. I really don't know what to do to fix those. Any help is appreciated!
I have 5 different code sections, so I'll just post the main and the 2 .cpp for right now.
This is my main, Clock.cpp, and AccurateClock.cpp. The main is supposed to feed numbers into the classes and print them on screen.
Usually, that error means that you've declared some function in the class, but haven't defined it. As vlad said, it might be that you didn't define it, or maybe you didn't compile the .cpp file that contains the definition.
Specific error lines are useful if that doesn't solve your problem.
Clock(int h, int m)
int hour = h;
int minute = m;
int getHour() const;
int getMinute() const;