Skip to Content
Programming: Principles and Practice Using C++, 2nd Edition
book

Programming: Principles and Practice Using C++, 2nd Edition

by Bjarne Stroustrup
May 2014
Beginner
1312 pages
38h 36m
English
Addison-Wesley Professional
Content preview from Programming: Principles and Practice Using C++, 2nd Edition

2. Hello, World!

“Programming is learned by writing programs.”

—Brian Kernighan

Here, we present the simplest C++ program that actually does anything. The purpose of writing this program is to

Let you try your programming environment

Give you a first feel of how you can get a computer to do things for you

Thus, we present the notion of a program, the idea of translating a program from human-readable form to machine instructions using a compiler, and finally executing those machine instructions.

2.1 Programs

To get a computer to do something, you (or someone else) have to tell it exactly — in excruciating detail — what to do. Such a description ...

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.
Start your free trial

You might also like

Programming: Principles and Practice Using C++, 3rd Edition

Programming: Principles and Practice Using C++, 3rd Edition

Bjarne Stroustrup
C++ How to Program, 10/e

C++ How to Program, 10/e

Paul Deitel, Harvey Deitel

Publisher Resources

ISBN: 9780133796759Purchase book