|
|
|
|
|
|
|
|
|
|
1>Main.cpp 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.h(11): error C2061: syntax error: identifier 'TimeFormat' 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.h(11): error C2535: 'TimeClock::TimeClock(void)': member function already defined or declared 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.h(9): note: see declaration of 'TimeClock::TimeClock' 1>TimeClock.cpp 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.h(11): error C2061: syntax error: identifier 'TimeFormat' 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.h(11): error C2535: 'TimeClock::TimeClock(void)': member function already defined or declared 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.h(9): note: see declaration of 'TimeClock::TimeClock' 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.cpp(17): error C2511: 'TimeClock::TimeClock(TimeFormat,int)': overloaded member function not found in 'TimeClock' 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.h(3): note: see declaration of 'TimeClock' 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.cpp(20): error C2597: illegal reference to non-static member 'TimeClock::hours' 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.cpp(21): error C2597: illegal reference to non-static member 'TimeClock::minutes' 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.cpp(25): error C2597: illegal reference to non-static member 'TimeClock::hours' 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.cpp(26): error C2597: illegal reference to non-static member 'TimeClock::minutes' 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.cpp(27): error C2597: illegal reference to non-static member 'TimeClock::seconds' 1>c:\users\tobia\source\repos\learningtimer\learningtimer\timeclock.cpp(31): error C2597: illegal reference to non-static member 'TimeClock::hours' 1>Generating Code... 1>Done building project "LearningTimer.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
TimeClock(TimeFormat format, int minutes);
TimeFormat
is. Put #include TimeFormat.h
somewhere before this line.
error C2061: syntax error: identifier 'TimeFormat' |
And should i use "this->" in |
|
|