4 ms·
What’s the best source for getting into C++ these days? I ask this as someone who already knows a good bit of C. I’m finding it difficult to know where to start
by 0db532a0 8y ago
What’s the best source for getting into C++ these days? I ask this as someone who already knows a good bit of C. I’m finding it difficult to know where to start, especially after reading about the proposed changes in C++20.
- htfy96 8y agoA tour of C++ from Bjarne: https://learning.oreilly.com/library/view/a-tour-of/9780133549041/ https://learning.oreilly.com/library/view/a-tour-of/97801335...
- runevault 8y agoI think that's the first edition, FYI second edition exists (dunno if it is in Safari or not).
- colanderman 8y agoStart with C++11. Learn how the STL works, and how to replace common C idioms with it. Learn how to write code that never directly calls `new` or `delete`. Learn move semantics, RAII, and the rule of 3/5 well. Dip your toes into templates. C++14 and 17 mostly just add some library features and clean up rough edges. You'll know you know C++11 well when you start wanting those features. Only then look at C++20. Bonus: there might actually be compiler support for it by then. (Caveat: You might want to learn modules sooner; they will probably be the most visible day-to-day change.)
- colmvp 8y agoPersonally, I love C++ Templates: The Complete Guide (2nd Edition) since it's such a thorough book on templates (which are pretty fundamental) and also goes into depth into other general C++ topics. It also discusses Concepts which are to included in C++20.
- 0db532a0 8y agoWhy did people downvote this?
- bra-ket 8y agoC++ primer from Lippman is the sanest https://www.amazon.com/Primer-5th-Stanley-B-Lippman/dp/0321714113 https://www.amazon.com/Primer-5th-Stanley-B-Lippman/dp/03217...
- 0db532a0 8y agoThanks to all for the sources.