Case Study: Array class

The program of Figs. 3-11 demonstrates class Array and its overloaded operators.
Figure 3: Array class definition with overloaded operators.
\includegraphics[scale=0.45]{figures/img8.19.ps}
\includegraphics[scale=0.45]{figures/img8.20.ps}
Figure 4: Array class member-and friend-function definitions. (part 1 of 4)
\includegraphics[scale=0.45]{figures/img8.21.ps}
\includegraphics[scale=0.45]{figures/img8.22.ps}
Figure 5: Array class member-and friend-function definitions. (part 2 of 4)
\includegraphics[scale=0.45]{figures/img8.23.ps}
\includegraphics[scale=0.45]{figures/img8.24.ps}
Figure 6: Array class member-and friend-function definitions. (part 3 of 4)
\includegraphics[scale=0.45]{figures/img8.25.ps}
\includegraphics[scale=0.45]{figures/img8.26.ps}
Figure 7: Overloaded stream-insertion and stream extraction operators. (part 4 of 2)
\includegraphics[scale=0.45]{figures/img8.27.ps}
Figure 8: Array class test program. (part 1 of 2)
\includegraphics[scale=0.45]{figures/img8.28.ps}
\includegraphics[scale=0.45]{figures/img8.29.ps}
Figure 9: Array class test program. (part 2 of 2)
\includegraphics[scale=0.45]{figures/img8.30.ps}
Figure 10: Array class test program, output. (part 1 of 2)
\includegraphics[scale=0.45]{figures/img8.31.ps}
\includegraphics[scale=0.45]{figures/img8.32.ps}
Figure 11: Array class test program, output. (part 2 of 2)
\includegraphics[scale=0.45]{figures/img8.33.ps}
2004-07-12