Allocation de mŽmoire en C++ : new et delete.
p1 : ?
p2 : ?
class Point
{
int x, y;
};

main ()
{
Point* p1;
Point* p2;

p1 = new Point;
delete p1;
}