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