From: min li <lee...@gm...> - 2009-09-03 06:08:55
|
#include<iostream> using namespace::std; int main() { int* pi=new int(1); delete pi; delete pi; return 0; } I use GCC. When I delete the "pi" twice, the program will not report error,Why? I compil the same code under VC and BC and run it, the program will report an error. Please help me and talk in detail, thanks a lot. |