Book description
Simply the best way for beginners to learn standard C++.
C++: A Dialog is the easiest, most effective way for beginners to learn C++ programming.
Steve Heller teaches C++ from scratch, through a one-on-one conversation with an intelligent beginner who asks the questions you'd ask. Heller's unique dialog format is brilliantly designed to clarify the concepts you might otherwise find confusing, so you can quickly learn today's most powerful and valuable C++ development techniques.
Heller takes you from the absolute fundamentals through the construction of a complete inventory application, including a simple but effective user interface. Along the way, you won't just learn C++ features: you'll see exactly how professional programmers bring them together and put them to work.
Unlike many beginners' books, C++: A Dialog uses industry-standard C++ and the latest standard libraries—giving you skills you can use with any standard C++ toolset, in any programming environment. You even get all the example code and a standard C++ compiler on CD-ROM so you can write and compile your own standard C++ programs on any 32-bit Microsoft Windows platform.
CD-ROM INCLUDED
The accompanying CD-ROM contains the commercial-grade Borland C++ 5.5 compiler and its associated libraries, which supports the latest ANSI/ISO C++ standards, including the STL (Standard Template Library) framework and C++ templates.
Table of contents
- Copyright
- List of Figures
- Foreword
- Preface
- Acknowledgments
- Letter from a Novice
- Introduction to Programming
- Hardware Fundamentals
-
Basics of Programming
- Definitions
- Objectives of This Chapter
- Rapid and Accurate Calculation
- The Compiler
- How the CPU Stores and Manipulates Data in Memory
- The Layout of Data in Memory
- Exercises, First Set
- The char and string Types
- using, namespace, and std
- int main()
- Exercises, Second Set
- Input and Output
- Changing the Course of Execution
- The while Loop
- Exercises, Third Set
- Our First Slightly Realistic Program
- Exercises, Fourth Set
- Review
- Conclusion
- Answers to Exercises
- More Basics
- Functional Literacy
-
Taking Inventory
- Definitions
- Objectives of This Chapter
- User-defined Data Types
- The StockItem class
- More Definitions
- Concrete Data Types
- The class Scope
- More about the StockItem class Interface
- Working around the Standard Library
- Reference Arguments
- Checking Inventory for a Misplaced Item
- Review
- Exercises
- Conclusion
- Answers to Exercises
-
Creating a Homegrown string class
- Objectives of This Chapter
- C String Literals vs. strings
- Dynamic Memory Allocation via new and delete
- Constructing a string from a C String
- Assignment Operator Issues
- Solving the Assignment Operator Problem
- The const Modifier for Reference Arguments
- Calling operator=
- Review
- Exercises
- Conclusion
- Answers to Exercises
- Finishing Our homegrown string class
- Inheritance
-
Polymorphism
- Definitions
- Objectives of This Chapter
- Introduction to Polymorphism
- Exercises, First Set
- Polymorphic Objects
- More Definitions
- Why We Need Polymorphic Objects
- Implementing Safe Polymorphism
- Reimplementing the Standard Member Functions for the New Version of StockItem
- Avoiding an Infinite Regress During Construction
- Reference Counting
- Sharing a Worker Object
- Why We Need m_Count in StockItem
- Review
- Exercises, Second Set
- Conclusion
-
The Home Inventory Project
- Definitions
- Objectives of This Chapter
- Data Items for the Home Inventory Project
- The Manager/Worker Idiom Again
- Hiding Unnecessary Information from the class User
- Saving the Number of the Elements in the File
- Creating a Data File Programmatically
- Adding the Ability to Edit a Record
- The New Member Functions of HomeItemMusic
- Review
- Exercises
- Conclusion
-
More on the Home Inventory Project
- Definitions
- Objectives of This Chapter
- Extending the Functionality of strings
- How to Implement Our New string Functionality
- The Include Guard
- Lessons of the xstring class Implementation
- Case-Insensitive Searching
- Searching for an Item by a Substring
- Putting It All Together
- How Software Development Really Works
- Review
- Conclusion
- Analyzing the Home Inventory Project
- Tying up Loose Ends
- Glossary
- About the Author
- Bibliography
- About the CD-ROM
- Index
Product information
- Title: C++: A Dialog Programming with the C++ Standard Library
- Author(s):
- Release date: August 2002
- Publisher(s): Pearson
- ISBN: 9780130094025
You might also like
book
The C++ Standard Library: A Tutorial and Reference
The C++ standard library provides a set of common classes and interfaces that greatly extend the …
video
Open Source Software Superstream Series: C++
Known for its speed and multithreading support—and its more than four decades of powerful application development—C++ …
book
C++ for Lazy Programmers: Quick, Easy, and Fun C++ for Beginners
Learn C++ the quick, easy, and “lazy” way. This book is an introductory programming text that …
book
Boost C++ Application Development Cookbook - Second Edition
Learn to build applications faster and better by leveraging the real power of Boost and C++ …