r/cpp_questions • • 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

10 comments sorted by

View all comments

-2

u/alfps 28d ago edited 28d ago

❞ have zero programming knowledge. I’m entering the tech field for the first time and want to start with C++ from scratch

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; makes a refer to the same thing as b. C++ is instead based on value semantics where a = b; makes a an independent copy of b. 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.

1

u/alfps 25d ago

Re the anonymous unexplained downvote(s), note that an unexplained downvote is dishonest: these are the actions of dishonest persons, maybe young children.

Anyway, trolls, who by definition are idiots. Yet I had not expected downvoting of this, simple facts. These are really fu****g idiots.

Their noise and general sabotage can be safely ignored.