previous
|
index
Dynamic Structs
C++ allows
structs
to be allocated from free store using
new
, similar to arrays. Suppose
struct foo { ... };
Then
new
can be used to return a pointer to a
foo
:
foo* fooPtr = new foo;
previous
|
index