Skip to content
jarllarsson edited this page Nov 14, 2012 · 34 revisions

(<- Home) Naming conventions and other code-style stuff.

Classes

class ClassName
{
public:
   ClassName();
   virtual ~ClassName();

   virtual void Foo(int p_bar);
protected:

private:
   float m_member;
   static s_magic;
};

Methods

void ClassName::Foo(int p_bar)
{
  Foo(p_bar);
}

Enums

struct Foo
{
    enum
    {
      ONE
      TWO
    }
}
Clone this wiki locally