Premier Press - CPP Programming for the Absolute Beginner
Title
BackCover
Table of Content
Synopsis
C++ Programming for the Absolute Beginner - Information
Foreword
Introduction
What's in This Book
What You Need to Get Started
Special Features in This Book
Chapter 1: Starting the Journey
Using CodeWarrior
Writing Your First Program
The Development Cycle
Working with Text
Displaying Strings with cout
Using cin
Working with Numbers
Creating the Pirate Musketeer Game
Summary
Chapter 2: Descending Deeper¡into Variables
Understanding Variables
Sorting Out the Relationship between Variables and Memory
Describing Variable Identifiers
Declaring and Assigning Variables
Introducing the Fundamental Variable Types
Using the sizeof() Operator
Making Life Easier with typedef
Casting
Using Constants
Understanding the Syntax
Creating the Weapon Store Game
Summary
Chapter 3: Taking Command with Control Statements
Using Boolean Operators
Choosing Code with Selection Statements
Following the Order of Operation
Continuing with Iteration Statements
Nesting
Leaping Around with Branching Statements
Creating Random Numbers
Creating the Roman Commander Game
Summary
Chapter 4: Writing Functions
Divide and Conquer
Exploring Function Syntax
Using the void keyword
Overloading Functions
Defaulting Arguments
Seeing Further with Variable Scope
Welcome to the Snail Races
Revealing the main Function
Macros: Constants on Steroids
Creating the Cave Adventure Game
Summary
Chapter 5: Fighting with OOP
Introduction to Object-Oriented Programming
Discovering Classes
Using Objects
Learning the Principles of OOP
Debugging
Creating the Conquest Game
Summary
Chapter 6: Moving to Advanced Data Types
Working with Arrays
Using Pointers
Beginning with References
Explaining Dynamic Memory
Re-Creating the Tic Tac Toe Game
Summary
Chapter 7: Building Namespaces
Understanding Namespaces
Declaring Duplicate Namespaces
Gaining Explicit Access to a Namespace
Creating Unnamed Namespaces
Rediscovering std Namespaces
Creating the Pirate Town Game
Summary
Chapter 8: Introducing Inheritance
Understanding Inheritance
Using Multiple Inheritance
Accessing Objects in a Hierarchy
Creating the Dragon Lord Game
Summary
Chapter 9: Using Templates
Creating Templates
Using the Standard Library
Creating the Mysterious Store Game
Summary
Chapter 10: Using Streams and Files
Understanding the Vocabulary of I/O
Understanding the Header Files
Introduction to File Streams
Working with Text Files
Verifying Stream
Working with Binary Streams
Working with Common Manipulators
Using Bit Fields
Creating an Encryption Program
Summary
Chapter 11: Errors and Exception Handling
Asserting Conditions
Handling Exceptions
Creating the MineField Game
Summary
Chapter 12: Programming with Windows
Introducing the Windows API
Creating a Windows Program in CodeWarrior
Examining the Windows Functions
Creating a Window
Processing Messages
Creating the Bouncing Ball Program
Summary
Chapter 13: Using DirectX
Understanding the Components of DirectX
Setting Up DirectX
Examining the DirectDraw Architecture
Investigating DirectDraw Interfaces and Objects
Understanding Display Modes
Exploring Primary Surfaces
Creating Surfaces
Drawing to the Screen
Using Bitmaps
Creating the Random Color Program
Summary
Chapter 14: Creating the Pirate Adventure
Programming the Game Engine
Congratulations, Reader!
Contest
Apppendix A: Answers to Chapter Challenges
Chapter 2 Answers
Chapter 3 Answers
Chapter 4 Answers
Chapter 5 Answers
Chapter 6 Answers
Chapter 7 Answers
Chapter 8 Answers
Chapter 9 Answers
Chapter 10 Answers
Chapter 11 Answers
Chapter 12 Answers
Chapter 13 Answers
Appendix B: Using the Octal, Hexadecimal, Binary, and Decimal Systems
Converting to Decimal
Converting from Decimal
Appendix C: Using the Standard ASCII Table
Appendix D: The C++ Keywords
Appendix E: What¡¯s on the CD
The Premier Press User Interface