In C ++, you do not need to βtypedefβ your structures.
Using:
struct structure_name { int x; int y; };
If you create myVar this way:
structure_name myVar;
You do not need to release it, it will be automatically destroyed and released when you exit the scope.
If you used pointers (created using the "new" keyword), you will need to explicitly release them using the "delete" keyword.
In C ++, you will only use pointers in certain cases.
source share