r/learnprogramming • u/milestailsprower1234 • 14h ago
Help me learn C++
I’ve been reading Herbert Schildt’s book on C++ and have reached page 340; is there an easier way, so I don’t have to read another 300 pages?
I’ve been reading Herbert Schildt’s book on C++ and have reached page 340; is there an easier way, so I don’t have to read another 300 pages?
0
Upvotes
1
u/milestailsprower1234 14h ago
6
u/Aggravating_Chef_656 14h ago
Im just gonna say it, C++ is the devils languague, it will be a pain in the arse to learn no matter what
1
u/Sagittarius_B1 14h ago
Is there something wrong with the book? Because if not, then what's the issue? And yeah obviously if you don't want to read you have a gazillion resources online
1
u/mc_pm 14h ago
We have no idea what is on page 340.
But, leave that book aside - how much time are you spending actually typing in code and fighting to get it to run?
1
u/_user1980 14h ago
I suggest you try Object-Oriented Programming in C++, Fourth Edition Robert Lafore and Programming: Principles and Practice Using C++ Second Edition Bjarne Stroustrup. it helped me a lot
6
u/Dazzling_Music_2411 14h ago edited 14h ago
If you can't even manage to read one book, then C++ is definitely not for you. Sorry.
PS. I haven't read Schildt, but looking it up it seems more like a reference book. If you're serious about learning, rather start with Stroustrup, perhaps Tour of C++.
And why have you formatted your post so awfully? It makes it hard to read.
1
u/Zen-Ism99 14h ago
learncpp.com
and
Books, practice, patience…
1
u/shipitcodes 14h ago
Since pointers were where you got stuck, I'd pause the book and write a tiny singly linked list from scratch, printing the addresses with std::cout as you go. Drawing the boxes and arrows on paper next to the output makes pointers click way faster than reading about them. OOP also tends to make more sense after that, because you've already built objects that point at each other.
1
u/betarage 13h ago
I am not sure if that book is good or not but you are already halfway done so keep reading it. most online guides are really bad the longer ones will have more examples. but may still not talk about certain things that are important and just waste a lot of time doing the same things over and over and not really explaining the point of it. So I hope this book is not like that.
1
u/Mediocre-Pumpkin6522 3h ago
I haven't heard that name in ages. Back in the day he was notorious and not in any good sense of the word. afaik, he hasn't published a C++ book in over 20 years so you're not looking at what is called 'modern C++'. As I understand it C++11 and C++20 made life considerably easier while maintaining backwards compatibility with some of the uglier features.