I'm a computer science student comfortable with Python and Java. I took C a while ago but have forgotten most of it. What's a good current book or other resource for learning C++?
What should I use to learn C++ if I already know Python and Java?
Answers
I'd start with LearnCpp for a step-by-step introduction to modern C++. Once you've got the basics down, A Tour of C++ is useful for a faster overview of how the language fits together.
Keep cppreference handy for looking up details, though it's more of a reference than a tutorial. The C++ Programming Language is another option, but it can be a lot to take on as a first resource.
Reply to this answer
If you prefer a book that teaches rather than just surveys the language, try Programming: Principles and Practice Using C++. It's substantial, but it covers modern C++ and aims to teach how to use the language, not just its syntax.
Reply to this answer
Whichever resource you pick, write small programs alongside it. Pay particular attention to pointers, memory management, and the standard library. Knowing Python and Java will help with programming concepts, but those C++ details deserve some deliberate practice.
Reply to this answer
Another route is to relearn C first, then move on to a C++ book. The C Programming Language is a classic starting point for that. It isn't the only path, though, and learning C first will take extra time before you get to C++ itself.
Reply to this answer
The C++ Programming Language is worth considering if you want a comprehensive book. It's a dense choice for someone new to C++, though, so a tutorial or introductory book might be easier to work through first.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions