Do not use pointers unless you know why you need them. If you need an object only for a while, select it on the stack:
Object object;
object.Method();
, :
int doStuff( Object& object )
{
object.Method();
return 0;
}
,
, , , , , ++ . , std:: auto_ptr boost:: shared_ptr.