File names should not contain underscores and should match class names if appropriate. File names should not be case sensitive and by default will be lower case. File names should not contain extraneous whitespace, or other special characters other than letters or digits. File names should only contain one period, to separate the file extension. C++ source files will use the .cpp extension. C source files will use the .c extension. All header files will use the .h extension
workq.cpp workq.h executor.c
Source files should contain the following components in the order shown:
Header files should contain the following components in the order shown:
Small inline methods like trivial accessors may be implemented in the class definition.
All header files should contain a file guard mechanism to prevent multiple inclusion. This mechanism is implemented as shown by the following lines:
#ifndef FileName_H // first line of the header file #define FileName_H // second line of the header file ... // body of the header file #endif // FileName_H // last line of the header file; note comment