Rabu, 02 Februari 2011

Incorrect C++ compiler behavior in Visual Studio

As most C++ programmers know, an object that has been constructed via the new expression must be destroyed by calling delete. The delete-expression invokes the object’s destructor which in turn is responsible for clean up tasks. For instance, here’s some sample code that shows object creation, and then freeing it up via delete: Foo *pF = new Foo();// Do some workdelete pF;The C++ Specification

Tidak ada komentar:

Posting Komentar