About Deitel & Associates, Inc.
Deitel & Associates, Inc., is an internationally recognized authoring and corporate training organization.
The company offers instructor-led courses delivered at client sites worldwide on programming languages
and other software topics such as C++, Visual C++
®
, C, Java
™
, C#
®
, Visual Basic
®
, Objective-C
®
, XML
®
,
Python
®
, JavaScript, object technology, Internet and web programming, and Android and iPhone app
development. The company’s clients include many of the world’s largest companies, as well as govern-
ment agencies, branches of the military and academic institutions. To learn more about Deitel Pearson
Higher Education publications and Dive Into
®
Series corporate training, e-mail deitel@deitel.com
or visit www.deitel.com/training/. Follow Deitel on Facebook
®
at www.deitel.com/deitelfan/
and on Twitter
®
@deitel.
Deitel
®
How to Program Series Cover Theme
The cover theme for the DEITEL
®
HOW TO PROGRAM SERIES emphasizes social consciousness issues such
as going green, clean energy, recycling, sustainability and more. Within the text, in addition to conven-
tional programming exercises, we’ve included our Making a Difference exercise set to raise awareness of
issues such as global warming, population growth, affordable healthcare, accessibility, privacy of electronic
records and more. In this book, you’ll use C++ to program applications that relate to these issues.
We hope that what you learn in C++ How to Program, 8/e will help you to make a difference.
Rainforests
The world’s rainforests are often referred to as the “Earth’s lungs,” the “jewels
of the Earth” and the “world’s largest pharmacy.” Approximately 50% of the
world’s tropical rainforests are in Central and South America, over 33% are in
Asia and Oceania (which consists of Australia, New Zealand and various South
Pacific Islands), and 15% are in Africa. Rainforests absorb from the atmos-
phere vast amounts of carbon dioxide—a gas that many scientists blame for
global warming—and they provide approximately 40% of the world’s oxygen.
They regulate water flow to surrounding areas preventing mudslides and crop
loss. Rainforests also support the livelihoods of 1.6 billion people, providing
food, fresh water, medicines and more. Approximately 25% of Western med-
icines used to treat infections, viruses, cancer and more are derived from plants
found in rainforests. The U.S. National Cancer Institute has found about 2100 rainforest plant species
that are effective against cancer cells. Fewer than one percent of rainforest plant species have been tested
for medical use.
Rainforests are being deforested at an alarming rate. According to a March 2010 report by the United
Nations Food and Agriculture Organization, deforestation has slowed over the last 10 years,
but more than 30 million acres of forests are still lost annually, and they’re not easily renewed.
The United Nations Environment Programme Plant for the Planet: Billion Tree Campaign is one of
many reforestation initiatives. To learn more about how you can make a difference, visit
www.unep.org/billiontreecampaign/index.asp. For further information visit:
www.rain-tree.com/facts.htm
www.savetherainforest.org/savetherainforest_007.htm
en.wikipedia.org/wiki/Rainforest
www.rainforestfoundation.org/
❝
I really like the Making a Difference programming exercises. The game programming [in the Functions chapter] gets
students excited.
❞
—Virginia Bailey, Jackson State University
❝
It’s great that the text introduces object-oriented programming early. The car analogy was well-thought out. An
extremely meticulous treatment of control structures. The virtual function figure and corresponding explanation in the
Polymorphism chapter is thorough and truly commendable .
❞
—Gregory Dai, eBay, Inc.
❝
An excellent ‘objects first’ coverage of C++ that remains accessible to beginners. The example-driven presentation is
enriched by the optional OO design case study that contextualizes the material in a software engineering project.
❞
—Gavin Osborne, Saskatchewan Institute of Applied Science and Technology
❝
It is excellent that [the authors] use the STL and standard libraries early.
❞
—John Dibling, SpryWare
❝
Provides a complete basis of fundamental instruction in all core aspects of C++. Examples provide a solid grounding in
the construction of C++ programs. A solid overview of C++ Stream I/O.
❞
—Peter DePasquale, The College of New Jersey
❝
Great discussion about the mistakes resulted from using = for == and vice versa!
❞
—Wing-Ning Li, University of Arkansas
❝
Thorough and detailed coverage of exceptions from an object-oriented point of view.
❞
—Dean Mathias, Utah State University
❝
Chapter 20 (Data Structures) is very good. The examples are accessible to CS, IT, software engineering and business stu-
dents.
❞
—Thomas J. Borrelli, Rochester Institute of Technology
❝
The Simpletron exercises are brilliant. The Polymorphism chapter explains one of the hardest topics to understand
in OOP in a clear manner. Great job! The writing is excellent, the examples are well developed and the exercises
are interesting.
❞
— José Antonio González Seco, Parliament of Andalusia, Spain
❝
Introducing the UML early is a great idea.
❞
—Raymond Stephenson, Microsoft
❝
Good use of diagrams, especially of the activation call stack and recursive functions.
❞
—Amar Raheja, California State Polytechnic University, Pomona
❝
Terrific discussion of pointers—the best I have seen.
❞
—Anne B. Horton, Lockheed Martin
❝
Great coverage of polymorphism and how the compiler implements polymorphism ‘under the hood.’ I wish I had such a
clear presentation of data structures when I was a student.
❞
—Ed James-Beckham, Borland
❝
A nice introduction to searching and sorting, and Big-O.
❞
—Robert Myers, Florida State University
❝
Will get you up and running quickly with the memory management and regular expression libraries.
❞
—Ed Brey, Kohler Co.
❝
Excellent introduction to the Standard Template Library (STL). The best book on C++ programming for the serious
student!
❞
—Richard Albright, Goldey-Beacom College
❝
Each code example is completely reviewed. This is a critical step for students to learn good programming practices.
❞
—Jack R. Hagemeister, Washington State University
❝
The most thorough C++ treatment I’ve seen. Replete with real-world case studies covering the full software
development lifecycle. Code examples are extraordinary!
❞
—Terrell Hull, Logicalis Integration Solutions
Continued from Back Cover
Cpphtp8e_final:Layout 1 1/19/11 10:30 AM Page 2