C++ for Programmers and over one million other books are available for Amazon Kindle. Learn more


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Kindle Edition
 
   
Sell Back Your Copy
For a $10.80 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
C++ for Programmers
 
 
Start reading C++ for Programmers on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

C++ for Programmers [Paperback]

Paul J. Deitel (Author), Harvey M. Deitel (Author)
4.0 out of 5 stars  See all reviews (3 customer reviews)

List Price: $59.99
Price: $32.72 & this item ships for FREE with Super Saver Shipping. Details
You Save: $27.27 (45%)
  Special Offers Available
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Tuesday, January 31? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for Students. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $29.45  
Paperback $32.72  
Sell Back Your Copy for $10.80
Whether you buy it used on Amazon for $14.74 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $10.80.
Used Price$14.74
Trade-in Price$10.80
Price after
Trade-in
$3.94

Book Description

0137001304 978-0137001309 February 2, 2009 1
PRACTICAL, EXAMPLE-RICH COVERAGE OF:
  • Classes, Objects, Encapsulation, Inheritance, Polymorphism
  • Integrated OOP Case Studies: Time, GradeBook, Employee
  • Industrial-Strength, 95-Page OOD/UML® 2 ATM Case Study
  • Standard Template Library (STL): Containers, Iterators and Algorithms
  • I/O, Types, Control Statements, Functions
  • Arrays, Vectors, Pointers, References
  • String Class, C-Style Strings
  • Operator Overloading, Templates
  • Exception Handling, Files
  • Bit and Character Manipulation
  • Boost Libraries and the Future of C++
  • GNU™ and Visual C++® Debuggers
  • And more…
VISIT WWW.DEITEL.COM
  • For information on Deitel® Dive-Into® Series corporate training courses offered at customer sites worldwide (or write to deitel@deitel.com)
  • Download code examples
  • Check out the growing list of programming, Web 2.0 and software-related Resource Centers
  • To receive updates for this book, subscribe to the free DEITEL® BUZZ ONLINE e-mail newsletter at www.deitel.com/newsletter/subscribe.html
  • Read archived issues of the DEITEL® BUZZ ONLINE
The professional programmer’s DEITEL® guide to C++ and object-oriented application development

Written for programmers with a background in high-level language programming, this book applies the Deitel signature live-code approach to teaching programming and explores the C++ language and C++ Standard Libraries in depth. The book presents the concepts in the context of fully tested programs, complete with syntax shading, code highlighting, code walkthroughs and program outputs. The book features 240 C++ applications with over 15,000 lines of proven C++ code, and hundreds of tips that will help you build robust applications.

Start with an introduction to C++ using an early classes and objects approach, then rapidly move on to more advanced topics, including templates, exception handling, the Standard Template Library (STL) and selected features from the Boost libraries. You’ll enjoy the Deitels’ classic treatment of object-oriented programming and the OOD/UML® 2 ATM case study, including a complete C++ implementation. When you’re finished, you’ll have everything you need to build object-oriented C++ applications.

The DEITEL® Developer Series is designed for practicing programmers. The series presents focused treatments of emerging technologies, including C++, .NET, Java™, web services, Internet and web development and more. 
  
PRE-PUBLICATION REVIEWER TESTIMONIALS
“An excellent ‘objects first’ coverage of C++. The example-driven presentation is enriched by the optional UML case study that contextualizes the material in an ongoing software engineering project.” —Gavin Osborne, Saskatchewan Institute of Applied Science and Technology

“Introducing the UML early on 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—probably the best I have seen.” —Anne B. Horton, Lockheed Martin

“Great coverage of polymorphism and how the compiler implements polymorphism ‘under the hood.’” —Ed James-Beckham, Borland

“The Boost/C++0x chapter will get you up and running quickly with the memory management and regular expression libraries, plus whet your appetite for new C++ features being standardized.” —Ed Brey, Kohler Co.

“Excellent introduction to the Standard Template Library (STL). The best book on C++ programming!”  —Richard Albright, Goldey-Beacom College

“Just when you think you are focused on learning one topic, suddenly you discover you’ve learned more than you expected.” —Chad Willwerth, University of Washington, Tacoma

“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/

Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $5 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

Customers buy this book with C Programming Language (2nd Edition) $40.53

C++ for Programmers + C Programming Language (2nd Edition)
  • This item: C++ for Programmers

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • C Programming Language (2nd Edition)

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details



Editorial Reviews

About the Author

Paul J. Deitel and Dr. Harvey M. Deitel are the founders of Deitel & Associates, Inc., the internationally recognized programming languages authoring, corporate-training and Internet business development organization. The Deitels have written many international best-selling programming-language professional books and textbooks that millions of people worldwide have used to master C++, C, Java™, C#, Visual Basic®, Visual C++® XML, Perl, Python, and Internet and web programming.  

Excerpt. © Reprinted by permission. All rights reserved.

Preface

Preface

“The chief merit of language is clearness ...”
—Galen

Welcome to C++ for Programmers! At Deitel & Associates, we write programming language professional books and textbooks for publication by Prentice Hall, deliver programming languages corporate training courses at organizations worldwide and develop Internet businesses. This book is intended for programmers who do not yet know C++, and may or may not know object-oriented programming.

Features of C++ for Programmers

The Tour of the Book section of this Preface will give you a sense of C++ for Programmers’ coverage of C++ and object-oriented programming. Here’s some key features of the book:

  • Early Classes and Objects Approach. We present object-oriented programming, where appropriate, from the start and throughout the text.
  • Integrated Case Studies. We develop the GradeBook class in Chapters 3–7, the Time class in several sections of Chapters 9–10, the Employee class in Chapters 12–13, and the optional OOD/UML ATM case study in Chapters 1– 7, 9, 13 and Appendix E.
  • Unified Modeling Language™ 2 (UML 2). The Unified Modeling Language (UML) has become the preferred graphical modeling language for designers of object-oriented systems. We use UML class diagrams to visually represent classes and their inheritance relationships, and we use UML activity diagrams to demonstrate the flow of control in each of C++’s control statements. We emphasize the UML in the optional OOD/UML ATM case study
  • Optional OOD/UML ATM Case Study. We introduce a concise subset of the UML 2, then guide you through a first design experience intended for the novice object-oriented designer/programmer. The case study was reviewed by a distinguished team of OOD/UML industry professionals and academics. The case study is not an exercise; rather, it’s a fully developed end-to-end learning experience that concludes with a detailed walkthrough of the complete 877-line C++ code implementation. We take a detailed tour of the nine sections of this case study later in the Preface.
  • Function Call Stack Explanation. In Chapter 6, we provide a detailed discussion (with illustrations) of the function call stack and activation records to explain how C++ is able to keep track of which function is currently executing, how automatic variables of functions are maintained in memory and how a function knows where to return after it completes execution.
  • Class string. We use class string instead of C-like pointer-based char * strings for most string manipulations throughout the book. We include discussions of char * strings in Chapters 8, 10, 11 and 19 to give you practice with pointer manipulations, to illustrate dynamic memory allocation with new and delete, to build our own String class, and to prepare you for working with char * strings in C and C++ legacy code.
  • Class Template vector. We use class template vector instead of C-like pointer-based array manipulations throughout the book. However, we begin by discussing C-like pointer-based arrays in Chapter 7 to prepare you for working with C and C++ legacy code and to use as a basis for building our own customized Array class in Chapter 11.
  • Treatment of Inheritance and Polymorphism. Chapters 12–13 include an Employee class hierarchy that makes the treatment of inheritance and polymorphism clear and accessible for programmers who are new to OOP.
  • Discussion and Illustration of How Polymorphism Works “Under the Hood.” Chapter 13 contains a detailed diagram and explanation of how C++ can implement polymorphism, virtual functions and dynamic binding internally. This gives you a solid understanding of how these capabilities really work. More importantly, it helps you appreciate the overhead of polymorphism—in terms of additional memory consumption and processor time. This helps you determine when to use polymorphism and when to avoid it.
  • Standard Template Library (STL). This might be one of the most important topics in the book in terms of software reuse. The STL defines powerful, template-based, reusable components that implement many common data structures and algorithms used to process those data structures. Chapter 20 introduces the STL and discusses its three key components—containers, iterators and algorithms. Using STL components provides tremendous expressive power, often reducing many lines of non-STL code to a single statement.
  • ISO/IEC C++ Standard Compliance. We have audited our presentation against the most recent ISO/IEC C++ standard document for completeness and accuracy. Note: A PDF copy of the C++ standard (document number INCITS/ISO/ IEC 14882-2003) can be purchased at webstore.ansi.org/ansidocstore/ default.asp.
  • Future of C++. In Chapter 21, which considers the future of C++, we introduce the Boost C++ Libraries, Technical Report 1 (TR1) and C++0x. The free Boost open source libraries are created by members of the C++ community. Technical Report 1 describes the proposed changes to the C++ Standard Library, many of which are based on current Boost libraries. The C++ Standards Committee is revising the C++ Standard. The main goals for the new standard are to make C++ easier to learn, improve library building capabilities, and increase compatibility with the C programming language. The last standard was published in 1998. Work on the new standard, currently referred to as C++0x, began in 2003. The new standard is likely to be released in 2009. It will include changes to the core language and, most likely, many of the libraries in TR1. We overview the TR1 libraries and provide code examples for the “regular expression” and “smart pointer” libraries.
  • Debugger Appendices. We include two Using the Debugger appendices— Appendix G, Using the Visual Studio Debugger, and Appendix H, Using the GNU C++ Debugger.
  • Code Testing on Multiple Platforms. We tested the code examples on various popular C++ platforms. For the most part, the book’s examples port easily to standard-compliant compilers.
  • Errors and Warnings Shown for Multiple Platforms. For programs that intentionally contain errors to illustrate a key concept, we show the error messages that result on several popular platforms.

All of this was carefully reviewed by distinguished industry developers and academics. We believe that this book will provide you with an informative, interesting, challenging and entertaining C++ educational experience.

As you read this book, if you have questions, send an e-mail to deitel@deitel.com; we’ll respond promptly. For updates on this book and the status of all supporting C++ software, and for the latest news on all Deitel publications and services, visit http://www.deitel.com. Sign up at http://www.deitel.com/newsletter/subscribe.html for the free Deitel¨ Buzz Online e-mail newsletter and check out our growing list of C++ and related Resource Centers at http://www.deitel.com/ResourceCenters.html. Each week we announce our latest Resource Centers in the newsletter.

Learning Features

C++ for Programmers contains a rich collection of examples. The book concentrates on the principles of good software engineering and stresses program clarity. We teach by example. We are educators who teach programming languages in industry classrooms worldwide. The Deitels have taught courses at all levels to government, industry, military and academic clients of Deitel & Associates.

Live-Code Approach. C++ for Programmers is loaded with “live-code” examples—by this we mean that each new concept is presented in the context of a complete working C++ application that is immediately followed by one or more actual executions showing the program’s inputs and outputs.

Syntax Shading. We syntax-shade all the C++ code, similar to the way most C++ integrated development environments (IDEs) and code editors syntax-color code. This greatly improves code readability—an especially important goal, given that this book contains over 15,500 lines of code. Our syntax-shading conventions are as follows:

comments appear in italic keywords appear in bold italic errors and ASP.NET script delimiters appear in bold black constants and literal values appear in bold gray all other code appears in plain black 

Code Highlighting. We place white rectangles around the key code segments in each program.

Using Fonts for Emphasis. We place the key terms and the index’s page reference for each defining occurrence in bold italic text for easier reference. We emphasize on-screen components in the bold Helvetica font (e.g., the File menu) and emphasize C++ program text in the Lucida font (e.g., int x = 5).

Web Access. All of the source-code examples for C++ for Programmers are available for download fro...


Product Details

  • Paperback: 1056 pages
  • Publisher: Prentice Hall; 1 edition (February 2, 2009)
  • Language: English
  • ISBN-10: 0137001304
  • ISBN-13: 978-0137001309
  • Product Dimensions: 9.1 x 7 x 2.3 inches
  • Shipping Weight: 3.4 pounds (View shipping rates and policies)
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (3 customer reviews)
  • Amazon Best Sellers Rank: #580,641 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

3 Reviews
5 star:
 (2)
4 star:    (0)
3 star:    (0)
2 star:
 (1)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.0 out of 5 stars (3 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

9 of 9 people found the following review helpful:
5.0 out of 5 stars The best from Deitel yet on C++, April 17, 2009
This review is from: C++ for Programmers (Paperback)
Buy this if you don't have one for C++ by Deitel yet.

Deitel has written great books on C++. I have read 2 editions of C++: How to program (3rd and 6th) and C How to program 3rd ed. ( actually just the C++ section of it). One thing you will find is that for every new edition of a Deitel book, you wind up reading a lot of the same words in verbatim, over, and over, and over again. Especially the balloon/bee tips.

So I'm happy to say this finally, it's all here. Actually it's all here in less pages and even more content because 0x stuff is in here too. All the balloon/bee tips are in this that I have ever seen in any other Deitel book, as well as the code examples. In fact, I'm not too sure what is missing from this book that is in the other more expensive ones besides less paper. It's just magically has 500 pages less (that could explain why it looks like it has a magic castle on its cover, or maybe that is just "creative" HDR).

This book's explanations are great, they get lengthy however. At some point you will just tune out some things the author is conveying because the author just keeps conveying the same thing in different ways. That doesn't make it a bad book, just, well you understand.

I think this book is the "best of" on the discussion of pointers, I'd have to say even if you know this material already, you will find it refreshing that someone is explaining them this well with this much detail dedicated to a introduction on them.

As usual, per the last few editions, classes come early. I've heard a few people say things along the lines towards the author of "O lord! It's way too early man, way too early. Man you're crazy! Crazy!". Whatever to that rubbish, it's not. However what is too early is to not cover nearly enough of them if you are going to cover them early. Don't get me wrong, what is covered early, is covered very well. It just leaves off too much, too much that can still be covered in this early chapter. Again, what is covered early is covered very well, and it will not confuse you on later chapters that set focus to classes.

Finally, this book is not for Programmers, at least not C++ programmers in early chapters. I just heard someone cry "What are you talking about man, you're killing me! Killing me!". What I mean is that it starts with int foo = 12; cout << foo;. This book focuses at the beginning for more like non-programmers. Heads to classes after that, then right back to if (foo);. You could probably skip the first 10 or 11 chapters with no problem if you know C. If you know only some language like VB, just read chapters 1 and 2, ROSE != rose, and skip to chapter 11 or so.

To sum up, I would of just gave this book 4 stars like I probably would the upcoming edition of C++: How to Program 7th ed. due to the fact it is way over drawn in chatter, but this book is pretty much the "Best Of" Deitel on C++. I'm not sure how the publisher plans to sell their upcoming edition of C++: How to program (7th edition), not at all.

It's been a long time coming, and for me Deitel finally wrapped up all their C++ work with this one book.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


6 of 6 people found the following review helpful:
5.0 out of 5 stars Just what I needed!, October 20, 2009
This review is from: C++ for Programmers (Paperback)
Whew!!! I finally finished this book. It took me several months to do it. I didn't skip a page, literally licked the plate clean. Before starting this book I was a scripter. I have 8 years experience with Perl and shell. So I knew most of the concepts being covered. But it was still a challenging read. I found myself reading difficult sections over two and three times. After finishing, I now feel that I know the C++ language. Of course now comes the hardest part, spending years using the language. When it comes to programming there is no substitute for experience. The book does have some excellent real-world case studies with lots of code. The largest is an ATM program.

To sum up, it's 1000 pages of pure technical material regarding the C++ language. Absolutely no filler, jokes, stories, etc. But when it comes to programming books, I find the best ones to do just that.

I would NOT recommend this to a beginning programmer. The very first chapter hurls you into the dark forest of object oriented theory. For a beginner I would recommend "C How to Program" which is also a Deitel book. Then move on the objects. The title sums it up... this book is for people who already know at LEAST the basics.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


3 of 3 people found the following review helpful:
2.0 out of 5 stars For Beginning, Not Experienced, Programmers, August 9, 2011
Amazon Verified Purchase(What's this?)
This review is from: C++ for Programmers (Paperback)
I've programmed in many languages and now have an assignment in C++. I was hoping to find a book that would leverage my already solid understanding of programming and focus more on the tricky, advanced aspects of C++. In this book, I find chapters like Introduction to: Classes, Objects, Recursion. Plus many pages allocated to loop structures, logical operators, etc. I already know these concepts. I want to know how accomplishing them in C++ is different from Pascal, Ada, Perl, Python, etc. Plus many many pages are allocated to software engineering with UML which is out of scope for a book of this title. In addition, some advanced subjects (i.e. -> operator ) are glossed over to the point that I've had to resort to Google (gasp!) to find out how they work. I believe this book should be trimmed down from 970+ pages to about 600 and focused on experienced programmers, or the title should be revised to reflect it's beginning programmer's perspective.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Only search this product's reviews



What Other Items Do Customers Buy After Viewing This Item?


Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product).
 
(81)
(12)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
Amazon has mixed up the reviews of another book with this one 0 Feb 5, 2009
See all discussions...  
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
   
Related forums





Look for Similar Items by Category


Look for Similar Items by Subject