What’s the best way to start learning C++?
Asked by
Garden gate+
I want to learn C++ for a project I plan to build in the future, probably related to game development. I currently know some C# and previously tried Python, but C++ feels much more complicated. Should I learn another language first, study C before C++, or start learning C++ directly? What would be a sensible learning path for someone with some beginner experience in C#?
Answers
A structured path would be to strengthen your fundamentals with C# first, then move into C++ using a good beginner course or book and complete all the exercises. Focus especially on pointers, references, object lifetime, strings, the standard library, and resource management. Reimplementing a few small programs in both languages can make the differences much clearer.
Reply to this answer
If C++ is the language you need, you can start learning it now. Your C# experience will help because the syntax and basic programming concepts overlap. Begin with small projects rather than trying to build your big idea immediately. C++ gives you a lot of control, but that also means it’s easier to create memory and resource-management problems without the language stopping you.
Reply to this answer
C is not a prerequisite for C++. It can teach useful concepts like pointers, memory, and how programs work at a lower level, but learning C first may also teach habits that don’t translate directly to modern C++. If your goal is C++, study C++ directly and learn those lower-level concepts as they become relevant.
Reply to this answer
Choose projects that gradually expose you to C++ instead of jumping straight into a complete game engine. Simple command-line tools, file-processing programs, or small data structures are good practice. Later, you can try a small game or graphics project. The important part is writing the code yourself and debugging it rather than relying on generated solutions.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Garden gate+: That makes sense. I think I was assuming I had to learn several languages before I was allowed to try C++, but starting with small projects sounds more practical.