class safearrayThis sequence of examples shows the development of a really useful set of member functions with a class that safely manages an array.
| Example Number | safearray.h | driver.cpp | Goal |
|---|---|---|---|
| 7 | Putting count in the class and automating it. |
||
| 8 | Another example using the automatic count capacity. | ||
| 9 | Embedding maxsize in the class, eliminating a global variable. |
||
| 10 | Another example using the embedded maxsize. |
||
| 11 | Solving Practical #9 using a safearray |