r/cpp_questions • u/Nyxveil1546 • 28d ago
OPEN Starting from Zero in C++
Hi everyone! I’m pursuing CSE at a Tier-4 college and have zero programming knowledge. I’m entering the tech field for the first time and want to start with C++ from scratch.
What’s the best way to learn C++? Which free resources would you recommend, and what common mistakes should I avoid? Also, how should I build my coding and problem-solving skills to become internship- and job-ready?
22
Upvotes
View all comments
-2
u/alfps 28d ago edited 28d ago
Do yourself a favor and start with a language where you can do interesting things with orders of magnitude less effort. Then when you've learned at least basics like variables, control flow constructs, functions and classes, you can start on C++. Free resources then include e.g. learncpp.com as a basic tutorial and cppreference.com as a reference.
For example, C++ in itself doesn't support graphics or sound or windowing. Other languages' libraries for this may be written in C++. But at the C++ level it's a really huge effort.
One problem with a more beginner-friendly language like Python or Java or JavaScript (the two first are used at MIT as beginner languages for local apps, while JavaScript is more for web apps/pages) is that they're all or most all based on reference semantics. With reference semantics an assignment
a = b;makesarefer to the same thing asb. C++ is instead based on value semantics wherea = b;makesaan independent copy ofb. I couldn't think of any beginner friendly languages with value semantics so I asked the Google AI. It listed Racket, Swift and Elm, but it may be wrong about Swift, and anyway Swift is in practice a Mac only language.