Case Study: Array class

The program of Figs. 3.3-3.11 demonstrates class Array and its overloaded operators.
Figure 3.3: Array class definition with overloaded operators.
\includegraphics[scale=0.45]{figures/img8.19.ps}
\includegraphics[scale=0.45]{figures/img8.20.ps}
Figure 3.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 3.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 3.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 3.7: Overloaded stream-insertion and stream extraction operators. (part 4 of 2)
\includegraphics[scale=0.45]{figures/img8.27.ps}
Figure 3.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 3.9: Array class test program. (part 2 of 2)
\includegraphics[scale=0.45]{figures/img8.30.ps}
Figure 3.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 3.11: Array class test program, output. (part 2 of 2)
\includegraphics[scale=0.45]{figures/img8.33.ps}
2004-07-29