1 Your First C++ Programs

There’s nothing to fear about C++ programming—really! Like all programming languages, it’s just a way to give logically precise directions to a computer. C++ can get as complicated as you want, but the easy way to start learning is to use it to solve fundamental programming tasks. That’s the approach here.

In the first couple of sections, I review the basic concepts of programming. If you’ve programmed in any language, you might want to skip these, or review them briefly. But if you stick around, I promise to not be too long-winded.

Thinking like a Programmer

Programming may not be exactly like any activity you’ve ever done. Basically, you’re just giving instructions—but doing so in a logical, systematic manner.

Get C++ Without Fear: A Beginner’s Guide That Makes You Feel Smart now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.