Another silly question on my part... But how do you define classes in XC?
For example...
Code: Select all
class Profiler {
int start, end;
timer tmr;
public:
void startTimer (){tmr :> start;}
void stopTimer (){tmr :> end;}
int getTimeMS () {return ((end-start)/10000);}
};
When I put this into the IDE, it comes up with the "Syntax Error" error on "class Profiler", "public:" and "};"... Any clues to what's wrong with the syntax?
Also, where might I find out more about the syntax of XC? I looked in the programming guide for XC, but no avail.
John