C++程序员笔试题目
1:请说明STL中,map,vector,deque的用法特点和效率比较。
2:你用过Boost库吗?请简述boost::bind和boost::function的用法
3:char [128] buf 这样写合法吗?如果不合法请列出正确写法。如果合法请列出什么时候使用这样的声明。
4:请说明堆内存,栈内存,全局内存,静态变量内存,常量,的存放方式和释放方式。并提出内存管理方面的一些想法和优化方案以及曾经使用过的库。
5: 简述UTF-8 UTF-16 Unicode ASCII GBK各是代表什么,他们之间的关系和相互转化算法(代码或伪代码)
6:数据驱动和代码驱动的区别是什么?请举例说明。 7:高效网络模型IOCP或Epoll,选一种简述其原理和注意事项?在Linux下如何使用IOCP?
8:什么是智能指针,它的作用是什么?简略的实现这样的一个类。
9:请尝试翻译以下文字: 原文:
Lighting - Our deferred lighting model is the pinnacle of contemporary real-time rendering. Using Wolfgang Engel's \"Light Pre-pass\" rendering, Torque's 3D’s advanced lighting can support hundreds of lights and global real-time dynamic shadowing on every object in your scene. Artists can combine this solution with pre-baked light maps or tune Torque's shadow maps for just the right look in a scene
Advanced Rendering - Torque's flexible, powerful rendering is as well suited to photo-realistic simulation as to achieving a custom, original-looking style. All modern features are supported by the Torque 3D renderer, including per-pixel dynamic lighting, normal and parallax occlusion mapping, and much more. Lighting can support hundreds of lights and global real-time dynamic shadowing on every object in your scene.
注:Torque 3D是一款渲染引擎,或简称Torque。 译文: