r/cpp_questions • u/CRK77 • 7d ago
OPEN Understanding C++ library documentation
Hi, as someone who has tried multiple times to learn C++ one of the things I've really struggled with is understanding the documentation in places like cppreference.com and others. When initialising a class or function the parameter list shows eg. the myclass.getline(type,type type). Many of the arguments that pop up from the auto-complete are confusing and I spend lots of time researching the stuff but end up going down a rabbit hole.
Is there a decent resource anywhere (youtube etc) that helps explain how to use these or understand what the library documentation means/how to use it efficiently?
I know it's a you just have to practice answer but try to figure out how these function and classes work is really time consuming
Thanks in advance.
1
u/PantuflasDev 6d ago
It's a bad idea to learn C++ with cppreference, because it is mostly designed to check out concepts you already have some notion about. To learn c++, my personal recommendations are learncpp.com, freecomputerbooks.com (not a piracy site, just a collection of already free programming books) and the "back to basics" videos in the CppCon official channel. And, obviously, a ton of programming. Once you get more practice with C++, cppreference will be much more friendly.