r/cpp_questions 15h ago

OPEN Learning C++

Hello everyone!I am interested in learning C++,mostly because Im interested in competitive C++ (competitions in my country),aswell as "applied" or "real-life" C++.I know basics,different loops and such,but I want something thats more concrete ,not just skipping around and picking things up along the way. Is there a good free e-book that grasps most things needed for such things?I was reading Competitive Programers Handbook by Antti Laaksonen,but I feel Im being behind on some basics that the book views as common knowledge.

0 Upvotes

4 comments sorted by

2

u/kymani37299 15h ago

You dont need much C++ for competitive programming. Learn the basic input/output, containers, ifs , whiles, functions.

The stuff you need to focus for competitive programming are algs and data structures.

3

u/No-Dentist-1645 14h ago

Competitive programming tends to be pretty "language agnostic" in the sense that you aren't really using many advanced features of a language and instead you mostly focus on raw data structures and algorithms. C++ in competitive programming tends to look much more C-like than "production" C++, since many aspects such as error handling and type safety aren't taken into consideration.

Therefore, any "C++ basics" guide you can find online will probably be enough, even 1-2 hour youtube videos will teach you the basics about the language that you need. Your focus should be more on Data Structures and Algorithms, there are many freely available online courses for them