Chapter 2. Introduction to C++ Programming


What’s in a name? that which we call a rose By any other name would smell as sweet.

 --William Shakespeare

When faced with a decision, I always ask, “What would be the most fun?”

 --Peggy Walker

“Take some more tea,” the March Hare said to Alice, very earnestly. “I’ve had nothing yet,” Alice replied in an offended tone: “so I can’t take more.” “You mean you can’t take less,” said the Hatter: “it’s very easy to take more than nothing.”

 --Lewis Carroll

High thoughts must have high language.



In this chapter you’ll learn:

  • To write simple computer programs in C++.

  • To write simple input and output statements.

  • To use fundamental types.

  • Basic computer memory concepts.

  • To use arithmetic operators. ...

Get C++ How to Program, Sixth Edition 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.