Chapter 1. Getting Started with C++

  • See how to write source code

  • Find out about compiling and linking source files

  • Get a peek at functions

  • Learn to use C-style and C++-style comments

  • Tour the basic input, output, and error streams


Creating a C++ Program

Why would anyone choose C++ as a favorite programming language? Maybe you’ve heard the nasty rumors that C++ is obtuse, difficult to understand, and downright unintuitive and unfriendly—that it’s mainly used by rocket scientists and egghead geeks. That couldn’t be further from the truth! C++ is a rich, robust programming language with features that make it stand head and shoulders above most other languages.

Procedural Programming

A programming paradigm that uses sub-programs or sub-routines ...

Get Practical C++ 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.