Programming style guides are collections of rules that are not part of the language itself. These rules include things like how to format the code, naming conventions, and what language features to use when. It is important to remember that these are conventions whose sole purpose is to enhance the readibility and consistency of the code across developers. Every organization has there own.
However, to give you some guidance, we will use the LLVM Coding Standards which give both low-level and high-level conventions. Code formatting can be automated using a tool called clang-format, because no one should waste time on low-level details like where braces go.
Note: we will not deduct large numbers of points for violating these rules, except in the most egregious of cases.