Home Segments Index Top Previous Next

427: Mainline

Recall that you define an array of cylinder objects with a definition that looks like a variable definition with a bracketed number added:

cylinder oil_tanks[100]; 

And you can define an array of pointers to cylinder objects by adding an asterisk before the array name:

cylinder *oil_tank_pointers[100];