Skip to Content
Introducing C++
book

Introducing C++

by Frances Buontempo
March 2026
Beginner
348 pages
7h 27m
English
O'Reilly Media, Inc.
Content preview from Introducing C++

Chapter 1. Hello, World!

Humans write code, but computers understand only 0s and 1s, so code needs to be “translated” for the computer. Some languages, like Python and JavaScript, are interpreted, meaning that the tools read the code and decide what to do dynamically, meaning at runtime. Every time such code is run, it must be reinterpreted.

Other languages, like Java and C#, compile to an intermediate language, for example, bytecode for Java. The output Lis interpreted by a virtual machine, so you can compile your code once and run it almost anywhere. This is more efficient than interpreting code every time it is run, because the initial transformation step needs happen only once.

C++ is different, though it follows a process used by C, Fortran, and several other languages. C++ source code is transformed directly into something the computer understands. When you build C++ code, two steps happen.

First, a compiler reads your code and produces object files that are specific to your target machine, such as 32-bit Windows, 64-bit Linux, or an embedded system. If you want your code to run on a different machine, you need to rebuild it. For a small program, the object files produced by the compiler might stay in memory; for a larger program, you are likely to see them, often with the extensions *.o or *.obj, generated on your machine.

Second, the linker stitches the object files together to produce a library, which you can use in another codebase, or program that you can run directly. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Effective Modern C++

Effective Modern C++

Scott Meyers
C++ Software Design

C++ Software Design

Klaus Iglberger
Learn C++ by Example

Learn C++ by Example

Frances Buontempo

Publisher Resources

ISBN: 9781098178130Errata Page