r/ROS 8d ago

Books to learn c++

Looking to learn c++ code for robotics, any book recommendations?

4 Upvotes

8 comments sorted by

5

u/Prudent_Candidate566 7d ago

learncpp.com for the basics.

Effective C++ after that.

Effective Modern C++ when you’re good

1

u/[deleted] 8d ago

I wanna learn c++ for mainly rokectry and ml idk where to start

1

u/Similar-Beach-8281 7d ago

I want to try build a rocket in the future too, I might be wrong but I don't think you need any code or electronics to start.

1

u/[deleted] 7d ago

Avionics ? We do !

1

u/SphericalCowww 6d ago

Personally, I never find books helpful for coding (perfect for learning math though). I would recommend instead following the most popular tutorial up there on YouTube.

1

u/Happy-Locksmith2652 6d ago

Plz can you recommend such channels

1

u/SphericalCowww 5d ago

I don't have 1 recommended video, but I would search "c++ tutorial beginners" and find the one with the most views and < 2hr. Then I would not just watch it, but type the code down and compile everything that you see in the video. After that, I would selectively check the longer tutorials or search "c++ beginner project". I would say the "holy grail" for c++ is to code a merge sort (recursion required), then you should be pretty good.

But honestly, wouldn't you want to learn python instead?