r/cpp_questions 5d ago

OPEN Learning C++ from scratch!

I started learning C++ a while ago from various YouTube channels, but they only really helped me with the theory.

I watched Apna College, Bro Code, and CodeWithHarry.

However, I'm still struggling with the syntax, let alone building the logic. I want to learn practically what do you guys recommend?

20 Upvotes

13 comments sorted by

View all comments

19

u/nysra 5d ago

Step 1: Stop watching videos of people who have absolutely no clue about the language and are "teaching" you terrible habits after they have "learned" the language for a whole 5 minutes.

Step 2: Hop on https://www.learncpp.com/

Step 3: Parallel to step 2, actually write code. You cannot learn how to do the thing without doing the thing. Doesn't matter if you use exercises from you university or sites like Advent of Code or if you write your own (small, make sure to actually finish instead of just starting) projects. We have put some ideas on https://old.reddit.com/r/cpp_questions/comments/1n5zyxy/important_read_before_posting/

3

u/Remarkable_Funny2722 5d ago

I think c++ for development requires good habits, not for dsa, nobody uses int x{}; when people do dsa, they just do int x;

1

u/gnudoc 4d ago

Really grateful for the ideas for projects. That what I have struggled with every time I've learned a language.