1
U P A N D R U N N I N G
In this chapter, you’ll
begin by setting up
a C++
development environment, which is the
collection of tools that enables you
to develop
C++ software. You’ll use the development envi-
ronment to compile your first C++
console application,
a program that you can run from the command line.
Then you’ll learn the main components of the development environment
along with the role they play in generating the application you’ll write. The
chapters that follow will cover enough C++ essentials
to construct useful
example programs.
C++ has a reputation for being hard to learn. It’s true that C++ is a big,
complex, and ambitious language and that even veteran C++ programmers
regularly
learn new patterns, features, and usages.
A major source of nuance is that C++ features mesh together so tightly.
Unfortunately, this often causes some distress to newcomers. Because C++
concepts are so tightly coupled, it’s just not clear where to jump in.
Part I of
. . . with such violence I fell to the ground that I found myself stunned,
and in a hole nine fathoms under the grass. . . . Looking down, I
observed that I had on a pair of boots with exceptionally sturdy straps.
Grasping them firmly, I pulled (repeatedly) with all my might.
—Rudolph Raspe, The Singular Adventures of
Baron Munchausen
4
Chapter 1
this book charts a deliberate, methodical course through the tumult, but it
has to begin somewhere. This chapter covers just enough to get you started.
Don’t sweat the details too much!
Dostları ilə paylaş: