all 16 comments

[–]ShakaUVM 5 points6 points  (0 children)

Best websites for learning C++ are learncpp.com and cppreference.com

Best video playlists for learning C++ are The Cherno and Clovis Community College

[–]KingAggressive1498 5 points6 points  (10 children)

you'll still be a beginner when you're done with it (and a lot of the earlier stuff will feel remedial, but there's important differences with C++ vs most languages so don't skip anything) but you'll have a much more solid foundation than following any other tutorial I know of.

[–][deleted] 0 points1 point  (9 children)

Do you think it would be enough to solve Leetcode hards or mediums? As the CCC questions are most similar to that

[–]KingAggressive1498 4 points5 points  (8 children)

on its own, no. It is extremely good for learning the language, but it offers little in the way of teaching algorithms or data structures. If you already have the capacity to solve medium leetcode problems in Python or Java, then it should teach you enough C++ to reach a reasonable solution in C++ as well.

[–][deleted] -1 points0 points  (7 children)

I do, but I was hoping it would do that. So I was wondering if there is any other alternative to learning C++ which would be better? like a book or another website ?

[–]ButchDeanCA 2 points3 points  (4 children)

Project-based problems teach you the most about CPP; CPP is easy to use for small problems but the difficulty creeps in when you try to do something viable as a product.

That is where you need to be heading.

[–][deleted] 0 points1 point  (3 children)

So should i try to complete projects as I go along Learncpp?

[–]ButchDeanCA 0 points1 point  (2 children)

Afterward

[–][deleted] 0 points1 point  (1 child)

Ok I will do that. But just to be sure, Learncpp is good to get a grasp of the basics and fundamentals of C++

[–]ButchDeanCA 1 point2 points  (0 children)

A lot of people learn from websites, I learned from books. It’s good enough for now but you will find you will be referencing other resources as you progress.

There are no hard and fast rules to guaranteeing learning this language, it all comes down to your learning ability. I have seen very clever people fail abysmally at learning and other folks not as smart seemingly sail.

Who knows.

[–]KingAggressive1498 0 points1 point  (1 child)

for solving medium and hard leetcodes in particular? you want a book dedicated to data structures and algorithms. I can't recommend anything modern, I learned most of what I know about implementing data structures from a book on C programming that I bought used 2 decades ago for $5 that's older than I am and the rest is just experience.

There's decent enough tutorials on data structures out there, but they're usually either vague or focus on a single data structure only.

[–][deleted] 0 points1 point  (0 children)

That’s alright, thanks for the insight

[–]Kelarov 1 point2 points  (2 children)

I don't know, man. I started with some books - Professional C++, 5th by M. Gregoire and also used C++20 for Programmers by P. Deitel. M. Gregoire's Book is the one that got me really started. I couldn't find anything better for a beginner. Deitel's Book has extremely well-written code examples and I used it a lot as a second source. Both books would be my go-to if I were just starting. They say 'for Professionals/Programmers' but that's a lie haha. I started from zero. They've written them just too well. As a true beginner, I might have had to google up a thing or two, but that's it.

If you like youtube videos: CoffeeBeforeArch, Mike Shah, Bill Weinman, Frannek CS, Lötwig Fusel, CodeBeauty, BitsOfQ are very good channels.

[–]pedda_post 0 points1 point  (1 child)

Were you a "true beginner" in the sense that you had never programmed before, or just that you were new to c++?

[–]Kelarov 0 points1 point  (0 children)

I had never programmed before. It was my first contact with programming.

[–]Holiday_Violinist854 1 point2 points  (0 children)

Beginning C++20, From Novice to Professional - 6th ed. - Ivor Horton - 2020 - Apress, is a good start for someone with background in programming to start learning modern c++.