Introduction to Game Programming with C++ (Wordware Game Developers Library)

11.4 Dynamic Arrays

The previous sections have shown that single objects can be created dynamically using the new keyword. However, so too can arrays of dynamic sizes, as the following demonstrates:

char *name = new char[50];

Let's explore this idea more completely in the following sections.

Категории