...
Structs will use PascalCase for their names. We will use the following syntax:
Code Block | ||
---|---|---|
| ||
struct StructName { ... }; |
...
When declaring a struct variable pointer, initialize it to nullptr
if no other options exist:
Code Block | ||
---|---|---|
| ||
StructName * struct_variable = nullptr; StructName * struct_variable_two = functionThatReturnsAStructNamePointer(); // Valid too! |
...