topical media & game development

talk show tell print

professional-program-16-Memory-MemoryDemoTest.c

? / professional-program-16-Memory-MemoryDemoTest.c


  include <MemoryDemo.h>
  
  int main(int argc, char** argv)
  {
    MemoryDemo* mem = new MemoryDemo();
    delete mem;
  
    mem = new MemoryDemo[10];
    delete [] mem;
  
    mem = new (nothrow) MemoryDemo();
    delete mem;
  
    mem = new (nothrow) MemoryDemo[10];
    delete [] mem;
  
    int x = 5;
    MemoryDemo* memp = new(5) MemoryDemo();
    delete memp;
  
    return (0);
  }
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.