gift card问题# Parenting - 为人父母
b*g
1 楼
全是C++的
1. STL map怎么插入和查找才能让时间复杂度小于O(lg n)?
2. new和malloc后会发生什么?我回答就是分块内存也在前面存着大小
3. foo *p1 = new foo();
foo *p2 = new foo();
如果第一行成功了,第二行产生了exception,那么p1会怎么样?
4. smart pointer怎么用?
5. C++中怎么实现exception handle?
1. STL map怎么插入和查找才能让时间复杂度小于O(lg n)?
2. new和malloc后会发生什么?我回答就是分块内存也在前面存着大小
3. foo *p1 = new foo();
foo *p2 = new foo();
如果第一行成功了,第二行产生了exception,那么p1会怎么样?
4. smart pointer怎么用?
5. C++中怎么实现exception handle?