Assigned Reading:
Slides As Shown:
Topics Covered:
In the first implementation, we used a member function at() to access items in the 2D array. The [] operator also works, but doesn't check bounds: twodim.h, twodim.cpp, tdtest.cpp.
In the second implementation, we made the [] operator check bounds, but we had to define a small class SmartIntPtr just to check the column number is in bounds: twodim2.h, twodim2.cpp, tdtest2.cpp.