I am a beginner at C++ and one of the things I am trying to do is Compile this:
class ClockType
{
public:
void setTime(int, int, int);
void getTime(int&, int&, int&);
void printTime() const;
void incrementSeconds();
void incrementMinutes();
void incrementHours();
bool equalTime(const clockType& otherClock) const;
private:
int hr;
int min;
int sec;
};
However, Visual C++ and Dev-C++ are saying "Syntax error before '&' token." for line 10. I really don't understand that much yet, but I can't figure what I am suppose to do with that line.
JCuervo811