Add the following application data to the project as described in the simulation:
- Add constant
#define MAX_RECS 32
to PhBookObj.h.
- Add
PhRec m_PhRecs[MAX_RECS]
to CPhBookObj
as a protected member of CPhBookObj
.
- Add
long m_numrecs
as a protected member of CPhBookObj
.
- Add
long m_currec
as a protected member of CPhBookObj
.
- In the constructor of
CPhBookObj
, initialize m_numrecs
to 0
and m_currec
to -1
.
- Make sure the project builds without errors.
20 points when all tasks are done and the project builds: autoscored. This exercise is worth 20 points and is scored automatically. Follow the instructions. When all tasks are done and the project builds click the Submit button and you will receive full credit for the exercise.