// main driver for idDescTable class. #include "funcTab.h" #include int main() { idFuncTable* anIdFuncTable = new idFuncTable(); cout << "Testing createEntry(int idx)...\n"; anIdFuncTable->createEntry(1); anIdFuncTable->seeFuncTable(); cout << "Testing saveQnum(int idx, int qnum)...\n"; anIdFuncTable->saveQnum(1, 5); anIdFuncTable->seeFuncTable(); cout << "Testing savePcnt(int idx, int pcnt)...\n"; anIdFuncTable->savePcnt(1, 3); anIdFuncTable->seeFuncTable(); cout << "Testing saveType(int idx, int pcnt, int type)...\n"; anIdFuncTable->saveType(1, 3, 7); anIdFuncTable->seeFuncTable(); for (int i = 2; i < 10; i++) { anIdFuncTable->createEntry(i); anIdFuncTable->saveQnum(i, i+1); anIdFuncTable->savePcnt(i, i+2); for (int j = 0; j < (i+2); j++) { anIdFuncTable->saveType(i, j, j+9); } } anIdFuncTable->seeFuncTable(); return 0; }