Initialize variables when you create them. Use initialization instead of assignment when it is more effective.
Never initialize or instantiate multiple items on the same line.
Do not declare automatic variables until required.
Never use static local variables.
Example:
TRect rectangle( 0,0,0,0 ); CTetrisClass* pointer = NULL;
Wrong:
static int a, b, c; // Static local variables are not allowed, TInt type must be // used, variables should be initialized (to zero, for example) // and multiple items should not be declared on the same line.