12
返回列表 发新帖
楼主: 2011051305
跳转到指定楼层
上一主题 下一主题
收起左侧

[学C/C++] 准备C++的面试有什么比较好的资源建议?

🔗
milanow 2017-9-14 00:28:00 | 只看该作者
全局:
2011051305 发表于 2017-9-13 13:28
能请问大概都考了哪些内容是您卡主的点吗? 我曾经被问到各种lock实现 和 大小端传输 (这难道不是C的内容 ...

那时候考过unique和shared pointer分别在什么情况下使用,还有c++里面的lock,还有placement new,还有一次考了throw exception的内容~其实这都不算啥,至少还有个课题可以准备,有一次一家onsite,拿了一堆奇奇怪怪的C++ code(就感觉平常不会有人这么写c++),然后问运行这一段会怎么样。。。这就需要对compiler特别了解了吧。。。就属于那种书上看过一遍 然后因为实际用到的很少就忘了,就像临阵突击怎么也不可能考一百分一样~

评分

参与人数 2大米 +6 收起 理由
Sai_L + 3 很有用的信息!
2011051305 + 3 感谢分享!

查看全部评分

回复

使用道具 举报

🔗
 楼主| 2011051305 2017-9-14 00:58:42 | 只看该作者
全局:
milanow 发表于 2017-9-14 00:28
那时候考过unique和shared pointer分别在什么情况下使用,还有c++里面的lock,还有placement new,还有一 ...

感谢指点!
(对Compilor理解。。。。 mdzz ==  感觉好多公司 c和c++ 都是混着来的 有一次我面c++的职位 全程要求strlen strcpy char[] 啥啥的 实现p2p message 。。。)

评分

参与人数 1大米 +3 收起 理由
Sai_L + 3 很有用的信息!

查看全部评分

回复

使用道具 举报

🔗
milanow 2017-9-14 01:28:03 | 只看该作者
全局:
2011051305 发表于 2017-9-14 00:58
感谢指点!
(对Compilor理解。。。。 mdzz ==  感觉好多公司 c和c++ 都是混着来的 有一次我面c++的职 ...

是啊 如果不是为了extract performance,根本不需要用c啊。。。主要是和raw pointer操作,程序大了的话总觉得很危险,vector直接用reserve space我觉得performance不会和array差太远吧 就是多了些header(虽说C++就是为了performance),榨出那点memory感觉只有游戏这种才会斤斤计较
回复

使用道具 举报

🔗
wqddmh 2017-12-3 23:52:55 | 只看该作者
本楼:
全局:
G4G是指哪?
回复

使用道具 举报

🔗
Sai_L 2017-12-4 01:35:51 | 只看该作者
全局:

估计LZ提到的是这个
www.geeksforgeeks.org/c-plus-plus/
回复

使用道具 举报

🔗
WKelvinson 2017-12-4 20:48:52 | 只看该作者
全局:
在这个Java盛行的年代难得看见C++的小伙伴,祭出stackoverflow:
https://stackoverflow.com/questi ... book-guide-and-list高票答案:down vote
Beginner

Introductory, no previous programming experience

Programming: Principles and Practice Using C++ (Bjarne Stroustrup) (updated for C++11/C++14) An introduction to programming using C++ by the creator of the language. A good read, that assumes no previous programming experience, but is not only for beginners.
Introductory, with previous programming experience

C++ Primer * (Stanley Lippman, Josée Lajoie, and Barbara E. Moo) (updated for C++11) Coming at 1k pages, this is a very thorough introduction into C++ that covers just about everything in the language in a very accessible format and in great detail. The fifth edition (released August 16, 2012) covers C++11. [Review]
A Tour of C++ (Bjarne Stroustrup) (EBOOK) The “tour” is a quick (about 180 pages and 14 chapters) tutorial overview of all of standard C++ (language and standard library, and using C++11) at a moderately high level for people who already know C++ or at least are experienced programmers. This book is an extended version of the material that constitutes Chapters 2-5 of The C++ Programming Language, 4th edition.
Accelerated C++ (Andrew Koenig and Barbara Moo) This basically covers the same ground as the C++ Primer, but does so on a fourth of its space. This is large because it does not attempt to be an introduction to programming, but an introduction to C++ for people who've previously programmed in some other language. It has a steeper learning curve, but, for those who can cope with this, it is a very compact introduction to the language. (Historically, it broke new ground by being the first beginner's book to use a modern approach to teaching the language.) [Review]
* Not to be confused with C++ Primer Plus (Stephen Prata), with a significantly less favorable review.

Best practices


Effective C++ (Scott Meyers) This was written with the aim of being the best second book C++ programmers should read, and it succeeded. Earlier editions were aimed at programmers coming from C, the third edition changes this and targets programmers coming from languages like Java. It presents ~50 easy-to-remember rules of thumb along with their rationale in a very accessible (and enjoyable) style. For C++11 and C++14 the examples and a few issues are outdated and Effective Modern C++ should be preferred. [Review]
Effective Modern C++ (Scott Meyers) This is basically the new version of Effective C++, aimed at C++ programmers making the transition from C++03 to C++11 and C++14.
Effective STL (Scott Meyers) This aims to do the same to the part of the standard library coming from the STL what Effective C++ did to the language as a whole: It presents rules of thumb along with their rationale. [Review]
Intermediate

More Effective C++ (Scott Meyers) Even more rules of thumb than Effective C++. Not as important as the ones in the first book, but still good to know.
Exceptional C++ (Herb Sutter) Presented as a set of puzzles, this has one of the best and thorough discussions of the proper resource management and exception safety in C++ through Resource Acquisition is Initialization (RAII) in addition to in-depth coverage of a variety of other topics including the pimpl idiom, name lookup, good class design, and the C++ memory model. [Review]
More Exceptional C++ (Herb Sutter) Covers additional exception safety topics not covered in Exceptional C++, in addition to discussion of effective object-oriented programming in C++ and correct use of the STL. [Review]
Exceptional C++ Style (Herb Sutter) Discusses generic programming, optimization, and resource management; this book also has an excellent exposition of how to write modular code in C++ by using non-member functions and the single responsibility principle. [Review]
C++ Coding Standards (Herb Sutter and Andrei Alexandrescu) “Coding standards” here doesn't mean “how many spaces should I indent my code?” This book contains 101 best practices, idioms, and common pitfalls that can help you to write correct, understandable, and efficient C++ code. [Review]
C++ Templates: The Complete Guide (David Vandevoorde and Nicolai M. Josuttis) This is the book about templates as they existed before C++11. It covers everything from the very basics to some of the most advanced template metaprogramming and explains every detail of how templates work (both conceptually and at how they are implemented) and discusses many common pitfalls. Has excellent summaries of the One Definition Rule (ODR) and overload resolution in the appendices. A second edition covering C++11, C++14 and C++17 has been already published . [Review]
Advanced

Modern C++ Design (Andrei Alexandrescu) A groundbreaking book on advanced generic programming techniques. Introduces policy-based design, type lists, and fundamental generic programming idioms then explains how many useful design patterns (including small object allocators, functors, factories, visitors, and multi-methods) can be implemented efficiently, modularly, and cleanly using generic programming. [Review]
C++ Template Metaprogramming (David Abrahams and Aleksey Gurtovoy)
C++ Concurrency In Action (Anthony Williams) A book covering C++11 concurrency support including the thread library, the atomics library, the C++ memory model, locks and mutexes, as well as issues of designing and debugging multithreaded applications.
Advanced C++ Metaprogramming (Davide Di Gennaro) A pre-C++11 manual of TMP techniques, focused more on practice than theory. There are a ton of snippets in this book, some of which are made obsolete by type traits, but the techniques, are nonetheless useful to know. If you can put up with the quirky formatting/editing, it is easier to read than Alexandrescu, and arguably, more rewarding. For more experienced developers, there is a good chance that you may pick up something about a dark corner of C++ (a quirk) that usually only comes about through extensive experience.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表