首页 > 卓驭C++ 一面
头像
牛客637566354号
编辑于 昨天 21:13 江苏
+ 关注

卓驭C++ 一面

面试官确实很专业

先是问了很多项目细节,学校经历,实习方面问了在momenta的体验,做了哪些工作等。

C++:

1. shared_ptr是怎么用的?原理?为什么可以共享状态?

2. shared_ptr<T> ps1 = new shared_ptr<T>(v);

shared_ptr<T> ps2 = new shared_ptr<T>(v);

shared_ptr<T> ps3 = ps2;

问此时引用计数是多少?

这种用法对吗?

其他的有些想不起来了,记忆深刻的就是这些。

全部评论

(3) 回帖
加载中...
话题 回帖

近期热帖

热门推荐