
| |
|
|
| 1 Overview of Programming and Problem Solving 1.1 Overview of Programming 1.2 What is a Programming Language? 1.3 What is a Computer? 1.4 Ethics and Responsibilities in the Computer Profession 1.5 Problem-Solving Techniques Summary 2 C++ Syntax and Semantics, and the Program development process 2.1 The Elements of C++ Programs 2.2 Program Construction 2.3 More About Output Programming Example: Contest Letter Testing and Debugging Summary 3 Numeric Type, Expressions, and Output 3.1 Overview of C++ Data Types 3.2 Numeric Data Types 3.3 Declarations for Numeric Types 3.4 Simple Arithmetic Expressions 3.5 Compound Arithmetic Expressions 3.6 Function Calls and Library Functions 3.7 Formatting the Output 3.8 Additional string Operations Programming Example: Map Measurements Testing and Debugging Summary 4 Program Input and the Software Design Process 4.1 Getting Data into Programs 4.2 Interactive Input/Output 4.3 Noninteractive Input/Output 4.4 File Input and Output 4.5 Input Failure 4.6 Software Design Methodologies 4.7 What Are Objects? 4.8 Object-Oriented Design 4.9 Functional Decomposition Programming Example: Stretching a Canvas Testing and Debugging Summary 5 Conditions, Logical Expressions, and Selection Control Structures 5.1 Flow of Control 5.2 Conditions and Logical Expressions 5.3 The If Statement 5.4 Nested If Statements 5.5 Testing the State of an I/O Stream Programming Example: Warning Notices Testing and Debugging Summary Looping 6.1 The While Statement 6.2 Phase of Loop Execution 6.3 Loops Using the While Statement 6.4 How to Design Loops 6.5 Nested Login Programming Example: Average Income by Gender Testing and Debugging Summary 7 Functions 7.1 Functional Decomposition wit Void Functions 7.2 An Overview of User-Defined Functions 7.3 Syntax and Semantics of Void Functions 7.4 Parameters 7.5 Designing Functions Programming Example: Comparison of Furniture-Store Sales Testing and Debugging Summary 8 Scope, Lifetime, and More on Functions 9 Additional Control Structures 10 Simple Data Types: Built-In and User-Defined 11 Structured Types, Data Abstraction, and Classes 12 Arrays 13 Array-Based Lists 14 Object-Oriented Software Development 15 Recursion Appendix A Reserved Words Appendix B Operator Precedence Appendix C A Selection of Standard Library Routines Appendix D Using This Book with a Prestandard Version of C++ Appendix E Character Sets Appendix F Program Style, Formatting, and Documentation Glossary Answers to Selected Exercises Index |
商品评论(0条)