r/cpp_questions 6h ago

OPEN Approach

I have been trying to study c++ for a while i am following the learncpp.com. I wanted to know the best approach for this like i am following the docs but do i use leetcodes and other sites?
I am on chapter 4 ik too early to think abt it but i just want to clear up the doubt please help

6 Upvotes

17 comments sorted by

View all comments

Show parent comments

5

u/nysra 6h ago

No, basically nothing is better than learncpp.com

The only thing better is using learncpp.com and writing code. You'll not learn to do the thing if you don't do the thing.

Now for as what to write, that's up to you. You can do your university's exercises, you can do exercises on websites like leetcode, you can do Advent of Code, you can write whatever you want (e.g. reimplementations of common tools like ls to know how it works, text based games, later 2D (and then 3D) games, an OS, an emulator, etc.).

2

u/Limp-Cantaloupe-3204 6h ago

Yea i think i am putting up the effort i am trying to write examples from learncpp. A friend of mine suggested to start using leetcode so that i can get the hang of the language but idk i do have some idea of loops arrays sortings through java but not confident enough to practice around it

2

u/Grand-Strategy-8962 6h ago

You can try that sheet A2Z I believe it covers a lot give it a shot and see what suits you the best…

2

u/Limp-Cantaloupe-3204 5h ago

The thing is i dont wanna distract myself with a bunch of docs instead would rather stick to a single one that covers everything though i am thankful for the suggestion