Has any one done NO 9 and 13 on pages 211 and 213 respectively from chapter 3 and NO 14 on page 362 from chapter 5. My answers does not correspond with answers in txtbook. Any help really appreciate it.
adjPtr = new Adjective; // allocate memory for first adjective object
adjPtr- >word = "fat";
// current = adjPtr- >antonymPtr; //don't do this, adjPtr- >antonymPtr doesn't point to anything yet
current = new Adjective; // allocate memory for the second adjective object
current- >antonymPtr = adjPtr; // link it back to the first object
current- >word = "thin"
adjPtr-antonymPtr = current; // add to end of first object
delete adjPtr- >antonymPtr; // deallocate memory from second object ("thin"
delete adjPtr; // deallocate memory from first object ("fat"