My Preferred C++ Style

 

A friend recently asked me for advice in how to structure C++ code. It made me need to think through what rules I tend to follow.

Here, I separate things out into three main different priorities.

File Organization

Function/Method Organization

Class Organization

Error Handling

Source/Header File Organization

Project Organization