热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

模拟考试

设为首页

收藏此页面

订阅邮箱地址

C++ 面试题与答案

Test your skills through the online practice test: C++ Quiz Online Practice Test

相关差异对比

C vs C++Java vs C++

问题 41. Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?


Mergesort always makes recursive calls to sort subarrays that are about half size of the original array, resulting in O(n log n) time.

这有帮助吗? 添加评论 查看评论
 

问题 42. What is abstraction?


Abstraction is of the process of hiding unwanted details from the user.

这有帮助吗? 添加评论 查看评论
 

问题 43. What are virtual functions?


A virtual function allows derived classes to replace the implementation provided by the base class. The compiler makes sure the replacement is always called whenever the object in question is actually of the derived class, even if the object is accessed by a base pointer rather than a derived pointer. This allows algorithms in the base class to be replaced in the derived class, even if users don't know about the derived class.

这有帮助吗? 添加评论 查看评论
 

问题 44. What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator.


An internal iterator is implemented with member functions of the class that has items to step through. .An external iterator is implemented as a separate class that can be "attach" to the object that has items to step through. .An external iterator has the advantage that many difference iterators can be active simultaneously on the same object.
 

这有帮助吗? 添加评论 查看评论
 

问题 45. What is a scope resolution operator?


A scope resolution operator (::), can be used to define the member functions of a class outside the class.

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。