查看: 8975| 回复: 15
跳转到指定楼层
上一主题 下一主题
收起左侧

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

全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
求问版上C++大神有什么针对C++面试的好guide?

如果时间来得及,显然通读一遍c++ primer很合适。然后是C++ primer的习题
G4G C++的部分列了一百来个topic,比较适合面试前迅速refresh mind.

不知道还有什么是很不错的内容? 谢谢!


上一篇:array easy123 **求助
下一篇:刷题记录贴
推荐
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.
回复

使用道具 举报

推荐
milanow 2017-9-13 01:14:47 | 只看该作者
全局:
本帖最后由 milanow 于 2017-9-13 01:17 编辑

同求,好几次C++面试题都考到了我不会的地方
回复

使用道具 举报

🔗
anzhe0629 2017-9-12 07:13:12 | 只看该作者
全局:
我也有一样的问题, 同求
回复

使用道具 举报

🔗
 楼主| 2011051305 2017-9-12 09:00:26 | 只看该作者
全局:
anzhe0629 发表于 2017-9-12 07:13
我也有一样的问题, 同求

问题是 “时间不够”。。。。哪有时间整个看一遍primer啊。。只能跳着看。。。然后万一重点看漏了呢。。
回复

使用道具 举报

🔗
NikoToretto 2017-9-12 09:30:02 | 只看该作者
全局:
本帖最后由 NikoToretto 于 2017-9-12 09:32 编辑

Beginning Visual C++ 2012 轻量级又不失细致地讲解 感觉还不错 层主曾经看过一遍

评分

参与人数 1大米 +3 收起 理由
2011051305 + 3 谢谢!

查看全部评分

回复

使用道具 举报

🔗
Yuzuka 2017-9-12 10:54:13 | 只看该作者
全局:
Effective C++ => More Effective C++ => Effective Modern C++

评分

参与人数 1大米 +3 收起 理由
2011051305 + 3 谢谢!(然后=>住院通知书..吗?哈哈)

查看全部评分

回复

使用道具 举报

🔗
stephenshaw 2017-9-13 01:59:22 | 只看该作者
全局:

1. 先看《Effective C++》
2. 再看《深入探索c++对象模型》英文名是《Inside C++ Object Model》

从Best Practise到内存模型都有了,面试遇到啥问题应该都能扯上一两句话了。

另外啊,一定要看C++ Primer,现在特别喜欢考smart pointer,不看primer没法玩啊!!至少把那一章给看了吧!

时间不够, 主看中文,中文读不懂的部分去找找英文版本。这两本书的中文版本在一个哥们的 github里都有:https://github.com/lancetw/ebook-1/tree/master/01_programming

评分

参与人数 3大米 +8 收起 理由
feifeimary + 2 很有用的信息!
Sai_L + 3 很有用的信息!
2011051305 + 3 好的! 谢谢前辈!

查看全部评分

回复

使用道具 举报

🔗
Yuzuka 2017-9-13 12:56:15 | 只看该作者
全局:
Effective C++ => More Effective C++ => Effective Modern C++ => 颈椎病康复指南
回复

使用道具 举报

🔗
 楼主| 2011051305 2017-9-13 13:28:59 | 只看该作者
全局:
milanow 发表于 2017-9-13 01:14
同求,好几次C++面试题都考到了我不会的地方

能请问大概都考了哪些内容是您卡主的点吗? 我曾经被问到各种lock实现 和 大小端传输 (这难道不是C的内容吗??)
回复

使用道具 举报

🔗
 楼主| 2011051305 2017-9-13 13:29:59 | 只看该作者
全局:
Yuzuka 发表于 2017-9-13 12:56
Effective C++ => More Effective C++ => Effective Modern C++ => 颈椎病康复指南

哈哈哈哈 颈椎病康复指南 + 视网膜脱离黄斑病变
回复

使用道具 举报

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

本版积分规则

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