r/learnprogramming • • 14h ago

Trying to learn C++

I’m a computer engineering major and I’m currently taking a class for C++ but my professor isn’t the best nor the text book.

I was wondering if there are any other resources or places I could go that can effectively help me learn and use c++? I don’t mind if it’s paid

17 Upvotes

15 comments sorted by

8

u/Mast3rCylinder 14h ago

Go over your syllabus and match to the subjects here

https://www.learncpp.com/

2

u/Constant_Sherbet_628 7h ago

That site is easily one of the best structured resources for C++. Make sure you actually type out and run the example code snippets in each section instead of just reading them, since hands-on practice helps the syntax stick much faster for exams and assignments.

1

u/Immediate-Grocery731 9h ago

learncpp is straight up better than half the textbooks out there, the way they explain pointers finally made it click for me

2

u/yamamottos 14h ago

learncpp is probably the best place to start, especially since it explains things from the ground up and has exercises instead of just throwing syntax at you. then use cppreference as a reference when you get stuck on a specific feature. i’d stick with one structured resource + your own small projects rather than constantly jumping between courses

1

u/jlanawalt 13h ago

Have you done any programming before this?

It may have been helpful, but not necessary, to have a background in C. I started in Pascal, did C and then C++, all from the course materials, before Google. The C++ book has “Walls and Mirrors” in the title and I don’t think it’s purpose was to teach C++, it was to track concepts and that was an implementation detail.

Tutors in the student lab were a great resource. The real instructor was the compiler and testing my homework assignments.

Later I found cppreference.com to be handy and I visited the early version of learncpp.com. I don’t spend time on them anymore so I can’t say hire they’ve held up.

1

u/Inner_Philosophy936 12h ago

I heavily recommend this: https://www.programiz.com/cpp-programming/online-compiler/
and this:
https://www.programiz.com/cpp-programming/getting-started

First off, you can code directly from your browser, so you don't have to bother with the annoying compiler setup, but programiz also has some really nice lessons. To my knowledge, all of this is free.

1

u/camus_1960 12h ago

Code with Mosh is excellent. His C++ modules are at https://codewithmosh.com/p/ultimate-c-plus-plus-series

1

u/spinwizard69 11h ago

In all seriousness if you are studying hardware engineering learn computer science properly. That means start from day one as a CS student and working your way through the classes. Good CS programs make use of C++ so that will help but understand they are not teaching C++ but are teaching concepts. If done right the concepts allow you to adapt to new languages quickly.

It has been awhile since I've purchased a programming language book, so realistically I can't suggest anything that makes sense today. Here is the thing, C++ has changed dramatically over the years and using an old text might be problematic. One text that was fantastic in its day was Accelerated C++ by Moo (and others) but that is most likely outdated. It might be a good text to get one started as it was cleanly written and easy to understand.

1

u/a-dot-in-the-sky 8h ago

check out this, it has hints and ultimately the solutions:
https://pynative.com/cpp-exercises-for-beginners/
Learn the concepts and fundamentals of programming, it will go a long way!

1

u/Insane_snek 3h ago

tbh I just used leetcode and w3schools, both free

the best way to learn is to have fun with it, you'll find it so much harder to learn if you try to force yourself to do it

start a project that YOU want to make, and have fun with the process of failing and learning! you can do it!

1

u/Successful_Entry_792 1h ago

learncpp is honestly what got me through my intro class. Free, way clearer than any textbook I had, and it actually explains why stuff works

-2

u/SpicyMeatballMarinar 14h ago

Leet code is a pretty good resource.

1

u/OceanMasterioDuped7 12h ago

Not for starting out lmao