www.gibmonks.com

Main Page




Previous Page
Next Page

[Page 36]

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.

Aristophanes

OBJECTIVES

In this chapter you will 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.

  • The precedence of arithmetic operators.

  • To write simple decision-making statements.


[Page 37]

Outline

2.1 Introduction

2.2 First Program in C++: Printing a Line of Text

2.3 Modifying Our First C++ Program

2.4 Another C++ Program: Adding Integers

2.5 Memory Concepts

2.6 Arithmetic

2.7 Decision Making: Equality and Relational Operators

2.8 (Optional) Software Engineering Case Study: Examining the ATM Requirements Document

2.9 Wrap-Up

Summary

Terminology

Self-Review Exercises

Answers to Self-Review Exercises

Exercises


Previous Page
Next Page