- Curly brackets on same line
- Do not use
using namespace
- Try not to use arrays unless necessary
- Always annotate functions, structs, and classes that you create or modify with the
/**...*/
annotation type - Destructors should only be used when necessary
##Variable Prefixes
Prefix | Name | Description | Used in |
---|---|---|---|
m | Member | Classes | |
s | Struct member | Structs | |
u | Union member | Unions | |
p | Pointer | Any | |
r | Reference | Any | |
C | Const | Classes, structs amd unions | |
M | Mutable | Classes, structs amd unions | |
g | Global | This should not be used ever | Never |