OReilly: Practical C++ Programming - 7Chan

Dec 10, 2002 - 21.5 Constructors and Destructors in Derived Classes. 21.6 The dynamic_cast ..... Online editions are also available for most titles ... encouraged to enter these programs into your computer and then run and debug them.
4MB Sizes 3 Downloads 217 Views
Main Page Table of content Copyright Preface Scope of This Handbook How This Book Is Organized How to Read This Book If You Already Know C Font Conventions How to Contact Us Acknowledgments for the First Edition Acknowledgments for the Second Edition Part I: The Basics Chapter 1. What Is C++? 1.1 A Brief History of C++ 1.2 C++ Organization 1.3 How to Learn C++ Chapter 2. The Basics of Program Writing 2.1 Programs from Conception to Execution 2.2 Creating a Real Program 2.3 Getting Help in Unix 2.4 Getting Help in an IDE 2.5 Programming Exercises Chapter 3. Style 3.1 Comments 3.2 C++ Code 3.3 Naming Style 3.4 Coding Religion 3.5 Indentation and Code Format 3.6 Clarity 3.7 Simplicity 3.8 Consistency and Organization 3.9 Further Reading 3.10 Summary Chapter 4. Basic Declarations and Expressions 4.1 Basic Program Structure 4.2 Simple Expressions 4.3 The std::cout Output Object 4.4 Variables and Storage 4.5 Variable Declarations 4.6 Integers 4.7 Assignment Statements 4.8 Floating-Point Numbers 4.9 Floating-Point Divide Versus Integer Divide

4.10 Characters 4.11 Wide Characters 4.12 Boolean Type 4.13 Programming Exercises 4.14 Answers to Chapter Questions Chapter 5. Arrays, Qualifiers, and Reading Numbers 5.1 Arrays 5.2 Strings 5.3 Reading Data 5.4 Initializing Variables 5.5 Multidimensional Arrays 5.6 C-Style Strings 5.7 Types of Integers 5.8 Types of Floats 5.9 Constant and Reference Declarations 5.10 Qualifiers 5.11 Hexadecimal and Octal Constants 5.12 Operators for Performing Shortcuts 5.13 Side Effects 5.14 Programming Exercises 5.15 Answers to Chapter Questions Chapter 6. Decision and Control Statements 6.1 if Statement 6.2 else Statement 6.3 How Not to Use std::strcmp 6.4 Looping Statements 6.5 while Statement 6.6 break Statement 6.7 continue Statement 6.8 The Assignment Anywhere Side Effect 6.9 Programming Exercises 6.10 Answers to Chapter Questions Chapter 7. The Programming Process 7.1 Setting Up Your Work Area 7.2 The Specification 7.3 Code Design 7.4 The Prototype 7.5 The Makefile 7.6 Testing 7.7 Debugging 7.8 Maintenance 7.9 Revisions 7.10 Electronic Archaeology 7.11 Mark Up the Program

7.12 Use the Debugger 7.13 Use the Text Editor as a Browser 7.14 Add Comments 7.15 Programming Exercises Part II: Simple Programming Chapter 8. More Control Statements 8.1 for Statement 8.2 switch Statement 8.3 switch, break, and continue 8.4 Programming Exercises 8.5 Answers to Chapter Questions Chapter 9. Variable Scope and Functions 9.1 Scope and Storage Class 9.2 Namespaces 9.3 Functions 9.4 Summary of Parameter Types 9.5 Recursion 9.6 Structured Programming Basics 9.7 Real-World Programming 9.8 Programming Exercises 9.9 Answers to Chapter Questions Chapter 10. The C++ Preprocessor 10.1 #define Statement 10.2 Conditional Compilation 10.3 #include Files 10.4 Parameterized Macros 10.5 Advanced Features 10.6 Summary 10.7 Programming Exercises 10.8 Answers to Chapter Questions Chapter 11. Bit Operations 11.1 Bit Operators 11.2 The AND Operator (&) 11.3 Bitwise OR (|) 11.4 The Bitwise Exclusive OR (^) 11.5 The Ones Complement Operator (NOT) (~) 11.6 The Left and Right Shift Operators () 11.7 Setting, Clearing, and Testing Bits 11.8 Bitmapped Graphics 11.9 Programming Exercises 11.10 Answers to Chapter Questions Part III: Advanced Types and Classes Chapter 12. Advanced Types 12.1 Structures

12.2 Unions 12.3 typedef 12.4 enum Type 12.5 Bit Members or Packed Structures 12.6 Arrays of Structures 12.7 Programming Exercises 12.8 Answers to Chapter Questions Chapter 13. Simple Classes 13.1 Stacks 13.2 Improved Stack 13.3 Using a Class 13.4 Introduction to Constructors and Destructors 13.5 Automatically Generated Member Functions 13.6 Shortcuts 13.7 Style 13.8 Structures Versus Classes 13.9 Programming Exercises Chapter 14. More on Classes 14.1 Friends 14.2 Constant Functions 14.3 Constant Members 14.4 Static Member Variables 14.5 Static Member Functions 14.6 The Meaning of static 14.7 Programming Exercises Chapter 15. Simple Pointers 15.1 const Pointers 15.2 Pointers and Printing 15.3 Pointers and Ar