Functions must be declared before use but can be defined after use. Function definitions can not be nested. Use consistent indentation to indicate intended program structure. Objects names are generally all lower case. Class names generally start with an upper case letter.
Constants are generally in all upper case.
Variables can be declared anywhere before they are used use. I usually collect all declarations at the top of each function so that they are easy to find. Use square brackets to indicate arrays. Arrays are declared with the number of storage locations indicated, but array element references start at zero. These container classes provide significant advantages over the use of arrays.