class Process
{
public:
// variables
boolean TASK_RUNNING; // states whether a task is running or not
boolean TASK_INTERRUPTIBLE; // states whether a task is interruptible or not
boolean TASK_UNINTERRUPTIBLE; // states whether a task is uninterruptible or not
boolean TASK_STOPPED; // states whether a task is stopped or not
boolean TASK_TRACED; // states whether a task is stopped by a debugger
boolean EXIT_ZOMBIE; // states whether a task is terminated but the parent process has not yet
// issued a system call to return information about the dead process or not
boolean EXIT_DEAD; // states whether a task is terminated and removed or not
int POWER_SAVE_MODE; // power-save mode
int STANDBY_MODE; // standby mode
int POWER_DOWN_MODE; // power down mode
// functions
void Initialize();
int SendProcessSleepMessage();
}
Missing something really really important after that last closing brace.
OK, do one more thing before you post this code again. Take all of those variable names that are in all-caps and fix them so that they aren't in all-caps anymore. They should all start with a lower case letter. You_can_use_underscores or youCanUseCamelCase. But you can't use all-caps.
Delta_G:
You_can_use_underscores or youCanUseCamelCase. But you can't use all-caps.
"can't" ? Really??? When was that law passed?
Capitalization is a convention, not a hard requirement. And there are tons of different coding conventions, some of which no doubt would disagree with you on this point. That doesn't make them wrong, just different. Even Kernighan and Ritchie state: "Traditional C practice is to use lower case for variable names, and all upper case for symbolic constants." That's a suggestion, not a mandate. The compiler doesn't care one bit. A good programmer will follow some convention, but it need not be the same one you follow.
I have continued by adding interrupt handlers. (Note that they are not complete yet; I just want to see if the program can detect them.) But I get errors like this.