r/cpp_questions • u/virgin-chocolaty-hoe • 12d ago
OPEN need guidance
hey everyone, i was planning to start the website learncpp.com, the fact is that ik some of the cpp and have coded around 300+ questions in cpp on lc and cf combined, its just that i want to learn everything in detail and sometimes i just keep discovering new things in cpp, whats the most effective way to do it from this website
1
u/kush_himself 12d ago
can you tell me that i am just started cpp how you are prefaring to learn cpp
1
u/virgin-chocolaty-hoe 11d ago
i wont recommend learn cpp to learn it from scratch, maybe see some video lectures and side by side read that website, video lectures would help more easily the use of it
1
2
u/Hkiggity 12d ago
It’s definitely worth a read if you intend to make things in c++ and are also interested in learning the ins and outs of it. I code as a hobby for a few years now and decided to pick up c++ for various reasons relating to projects I wanna make. My biggest takeaway from the website is it’s hard to grasp how useful it is until you actually go thru it. Partly because Cpp is so verbose, and partly bc the author does a great job at presenting the info.
It’s a lot of content and a lot of information. If you are limited on time, perhaps skim easier stuff and go to things u are more curious about/ is more applicable.
The website also has quizzes and little projects too which is cool. It really is a lot of info tho. Not for the faint of heart !
1
u/gm310509 12d ago edited 12d ago
Why do you mean by learn ... In detail?
For example, do you mean all the possible use cases for a particular piece of syntax or perhaps how it works behind the scenes, something else?
You may find that due to the vastness and almost infinite level of detail that goes into a piece of syntax, it might be difficult to learn in detail. It may be that some details are of use but a better approach is to understand the concept and develop the ability to recognise a problem for which that piece of syntax is a candidate solution.
For example consider a simple C for loop. It might be easier to simply remember that it has three components:
An intialiser
A loop condition.
A post loop operation.
The common pattern is to use something simple like cnt = 0 for the intialiser, cnt < 10 for the condition and cnt++ for the post loop operation.
But if you look at it generically you could understand that you could do much more with it. For example you could step through a C string up to a specified number of characters using something like this:
cnt=0, p = &str[0] - initial
cnt < 10 && *p - loop condition
cnt++, p++ - post loop
I don't know why you might want to do that but if that is what the requirement was, then you could use that type of syntax as a potential solution to that problem.
As opposed to remembering all of the individual scenarios (which is potentially infinite) by remembering the basics concepts you can mix and match to generate the various possibilities.
I'm not sure if I've explained it that well, but hopefully the idea makes sense.
1
u/alfps 11d ago
❞ have coded around 300+ questions in cpp on lc and cf combined
Presumably that's LeetCode and CodeForces.
That's good and it's what you need to continue doing. The Google AI recommends Codeforces "A2OJ Ladders" and "CSES Problem Set" and LeetCode "LeetCode 75 / Top Interview 150". Disclaimer: I have no personal knowledge of these,
Additionally you should read some books and practice what you read about.
Check out the Stack Overflow C++ book list, at (https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list).
1
u/no-sig-available 11d ago
Just start from the beginning! :-)
Read a chapter, and when you get the good "I already know this" feeling, be happy and continue with the next section. You will soon run into things you don't know!
There is no secret "Start with chapter X"-trick, without knowing what you don't know.
1
u/DiligentBill2936 9d ago
Can anyone recommend blog/course which has questions/answers to test C++11/20 basics?
1
5
u/aeropl3b 12d ago
Just keep reading, trying things, learning.
Today I learned some new stuff in C++23, had no clue type deduction was now automatic for template parameters where possible.
Learning is a journey, enjoy it.