home > resources > c++ coding standard > online version

Static Variables

  • Static variables should be prepended with 's'.

Justification

  • It's important to know the scope of a variable.

Example 2-12. Static Variables Example

class Test
{
public:
private:
    static StatusInfo   msStatus;
}