TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How would you recommend learning C++ in 2018?

11 点作者 flickzcode将近 7 年前

6 条评论

kotrunga将近 7 年前
Depends how you like to learn. If it&#x27;s through a book, others online have recommended this book if you&#x27;re a programmer already [0]. Then go and learn the latest things they&#x27;re adding in C++. If you&#x27;re new to programming and like books, you could try this [1].<p>If you learn better through videos, maybe try out TheNewBoston&#x27;s stuff on Youtube [2].<p>Some extra links that might be helpful [3][4].<p>[0]: <a href="https:&#x2F;&#x2F;tinyurl.com&#x2F;ydy3kq48" rel="nofollow">https:&#x2F;&#x2F;tinyurl.com&#x2F;ydy3kq48</a><p>[1]: <a href="http:&#x2F;&#x2F;www.stroustrup.com&#x2F;4th.html" rel="nofollow">http:&#x2F;&#x2F;www.stroustrup.com&#x2F;4th.html</a><p>[2]: <a href="https:&#x2F;&#x2F;tinyurl.com&#x2F;p53p4kw" rel="nofollow">https:&#x2F;&#x2F;tinyurl.com&#x2F;p53p4kw</a><p>[3]: <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;388242&#x2F;the-definitive-c-book-guide-and-list" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;388242&#x2F;the-definitive-c-...</a><p>[4]: <a href="https:&#x2F;&#x2F;www.quora.com&#x2F;What-are-the-best-C++-books" rel="nofollow">https:&#x2F;&#x2F;www.quora.com&#x2F;What-are-the-best-C++-books</a>
评论 #17776539 未加载
TheAsprngHacker将近 7 年前
First, you should know that C++11, the C++ standard ratified in 2011, redesigns the language to promote safer and more expressive code. C++11 introduces rvalue references, std::unique_ptr (a smart pointer with unique ownership semantics and a move constructor, superseding std::auto_ptr), auto (type inference), and container iteration syntactic sugar. C++14 and C++17 enhance the changes brought by C++11.<p>Know about RAII, ownership, move semantics, and smart pointers. Please know that some common C idioms are considered poor C++. (E.g. resource cleanup via goto is superseded by destructors, and malloc and free are superseded by new and delete, which in turn are discouraged in favor of smart pointer RAII.)<p>Modern C++ is a good programming language, but unfortunately, many resources don’t teach it. Make sure that the resource covers C++11 at earliest. Bjarne Stroustrup, the original implementor of C++, has written some good books. Herb Sutter is another notable C++ author. See also <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;q&#x2F;388242&#x2F;8887578" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;q&#x2F;388242&#x2F;8887578</a>.
totallynotadev将近 7 年前
There was a discussion recently: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16535886" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16535886</a><p>I personally started with the Tour of C++ and plan to go through this series: <a href="http:&#x2F;&#x2F;craftinginterpreters.com" rel="nofollow">http:&#x2F;&#x2F;craftinginterpreters.com</a>
thorin将近 7 年前
Why do you want to learn it? If you are interested in games try <a href="https:&#x2F;&#x2F;handmadehero.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;handmadehero.org&#x2F;</a>
madrafi将近 7 年前
The Tour of C++ and a project or two
arc2将近 7 年前
Not at all