Assignment 6 questions.


R. Clayton (rclayton@clayton.cs.monmouth.edu)
Wed, 17 Jan 2001 19:01:09 -0500 (EST)


  In the main program you gave us, since "cmds" was declared in the main
  function, should it not be the one to free up the memory? Shouldn't the main
  function you gave us have a statement like "delete [ ] cmds;" before the
  closing bracket of the while loop?

The rules we went over for building libraries should answer the first question.
Also, let me ask one of my own: why do you want to use new and delete?

  2) I am assuming it is okay for the procedure "command" output by my program
  "gen-cmd" to have 'include' and 'using' statements like "include <string>"?

Yes.



This archive was generated by hypermail 2.0b3 on Thu May 17 2001 - 12:00:05 EDT