close
  • The Evolution of a Programmer

    >there is memory leak in the seasoned programmer >version. string(const string &s) : size(s.size) { ptr = >new char[size + 1]; strcpy(ptr, s.ptr); } you are not >freeing memory of the old string that ptr points to. Yeah, that's because the seasoned programmer... more

    Reviewed by Joe-Anonymous Sep 01 2007, 02:13pm ( 46 reviews ) nus.edu.sg

  • Showing 38 of 46
  • Reviews of the site