C/C++
dynamic.asc
Associated article: Managing Dynamic Objects in C++
Tags: C/C++
_MANAGING DYNAMIC OBJECTS IN C++_
by Tom Cargill
Listing One
void some::SoleOwner()
{
. . .
Resource *res = new Resource;
. . .
delete res;
. . .
}
Listing Two
void
Transport::xmit(const Packet *p)
{
static char *buffer = 0;
static int allocated = 0;
int sz = formattedSize(p);
if( sz > ...


