定义的时候直接Coordinate *P1 = new Coordinate,这样写对不对呢?
Coordinate *P1 = NULL;
P1 = new Coordinate;加不加括号都对,
那么Coordinate *p2 = new Coordinate()加上括号和不加括号也都正确吗?
Coordinate *P1 = NULL;
P1 = new Coordinate;加不加括号都对,
那么Coordinate *p2 = new Coordinate()加上括号和不加括号也都正确吗?
2015-09-05
举报