Home Segments Index Top Previous Next

391: Practice

Add reader and writer member functions to read and write cylinder information that is stored in a cylinder array. Use your writers to store cylinder radius–length pairs provided in a file. Then, use your readers to determine the average radius, length, and volume of the cylinders.