Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Structs will use PascalCase for their names. We will use the following syntax:

Code Block
languagecpp
struct StructName {
  ...
};

...

When declaring a struct variable pointer, initialize it to nullptr if no other options exist:

Code Block
languagecpp
StructName * struct_variable = nullptr;

StructName * struct_variable_two = functionThatReturnsAStructNamePointer(); // Valid too!

...