C++ Interview - using new and delete to alloc and free memory

1. dynamic create object and initialization

int *pi = new int;   // pi points to an uninitialized int
int *pi = new int(); // pi points to an int value initialized to 0
上一篇:用命令行在github新建一个项目


下一篇:Javascript 生成随机数