int main(void)
{
Coordinate *p = new Coordinate[2];
if(p == NULL)
{
return 0;
}
p -> Coordinate(1,2);
++p -> Coordinate(3,4);
--p;
for(int i = 0; i < 2; i++)
{
coorArr[i].printInfo();
}
delete []p;
p = NULL;
return 0;
}
{
Coordinate *p = new Coordinate[2];
if(p == NULL)
{
return 0;
}
p -> Coordinate(1,2);
++p -> Coordinate(3,4);
--p;
for(int i = 0; i < 2; i++)
{
coorArr[i].printInfo();
}
delete []p;
p = NULL;
return 0;
}