Hi, I have other questions. Because these questions don't have anything to do with STL, I might as well post them into a different thread.
My code is turning into a small beast now. I know that I have memory leak somewhere along the code, but because it's bigger than what it was before, I can't trace all the 'new' and 'delete' in it. The question is: How do I detect memory leaks?
BTW, another memory related question. Why doesn't this code work?
Code:char *foo; char foo2="Hello world!"; foo=new char[strlen(foo2)]; strcpy(foo,foo2); delete foo;