Paul Kelly,爱尔兰都柏林工业大学(DIT)的不错讲师PaulKelly。Kelly老师长期从事程序设计类课程的教学工作,在程序设计类课程教学方面教学实践经验丰富,在国外已先后出版多本程序设计语言类书籍。 苏小红,哈尔滨工业大学计算机学院博士生导师,计算机应用技术专家,研究领域主要是色彩匹配,信息融合,空间计算,人工神经网络,进化算法,计算机图形学,灰色预测,彩色图像处理等。
无
Chapter One Typographic Conventions(绪论) 1.1 What is a computer program (什么是计算机程序 ) 1.2 Developing a computer program(开发计算机程序) 1.2.1 Program development cycle 1.3 Learning C++(学习 C++) 1.4 Web site for this book(本书的网站) 1.5 Brief history of C++(C++简史) 1.6 ANSI/ISO C++ standard(ANSI/ISO C++标准) Chapter Two Beginning to Program in C++(C++编程入门) 2.1 Constants(常量) 2.2 Variables(变量) 2.3 Simple output to the screen(简单的屏幕输出) 2.4 Comments(注释) 2.5 Data types(数据类型) 2.5.1 Short integer data types 2.5.2 Long integer data types 2.5.3 Boolean data types 2.5.4 Double floating-point data types 2.5.5 Unsigned integer data types 2.6 Data type sizes(数据类型的大小) 2.7 Operators (运算符) 2.7.1 The assignment operator 2.7.2 Arithmetic operators 2.7.3 Increment and decrement operators 2.7.4 Combined assignment operators 2.8 Operator precedence(运算符的优先级) 2.9 Data type conversions and casts(类型转换和强转) Programming pitfalls Quick syntax reference Exercises Chapter Three Keyboard Input and Screen Output(键盘输入和屏幕输出) 3.1 Simple keyboard input(简单的键盘输入) 3.2 Manipulators(流操纵符) 3.3 Single-character input and output(单个字符的输入和输出) Programming pitfalls Quick syntax reference Exercises 32 Chapter Four Selection and Iteration(选择与循环) 4.1 Selection(选择) 4.1.1 The if statement 4.1.2 The if-else statement 4.1.3 Compound statements 4.1.4 Logical operators 4.1.5 Nested if statements 4.1.6 The switch statement 4.1.7 The conditional operator 4.2 Iteration(循环) 4.2.1 The while statement 4.2.2 The do-while loop 4.2.3 The for statement 4.2.4 Nested loops Programming pitfalls Quick syntax reference Exercises Chapter Five Arrays and Structures(数组和结构体) 5.1 Arrays(数组) 5.1.1 Introduction 5.1.2 Initialising an array 5.1.3 Two-dimensional arrays 5.1.4 Initialising a two-dimensional array 5.1.5 Multi-dimensional arrays 5.2 Structures(结构体) 5.2.1 Introduction 5.2.2 Declaring a structure 5.2.3 Initialising a structure variable 5.2.4 Nested structures 5.3 The typedef statement(typedef 语句) 5.4 Arrays of structures(结构体数组) 5.5 Enumerated data types(枚举数据类型) Programming pitfalls Quick syntax reference Exercises Chapter Six Strings(字符串) 6.1 C-strings(C 风格字符串) 6.2 C-string input and output(C 风格字符串的输入和输出) 6.3 Accessing individual characters of a C-string(访问C 风格字符串中的单个字符) 6.4 C-string functions(C 风格字符串函数) …… Chapter Seven Functions(函数) Chapter Eight Objects and Classes(对象和类) Chapter Nine Pointers and Dynamic Memory(指针和动态内存分配) Chapter Ten Operator Overloading(运算符重载) Chapter Eleven Inheritance(继承) Chapter Twelve Polymorphism(多态) Chapter Thirteen Templates(模板) Chapter Fourteen Files and Streams(文件和流) Appendix A List of C++ Keywords Appendix B Precedence and Associativity of C++ Operators Appendix C ASCII Character Codes Appendix D Fundamental C++ Built-in Data Types Appendix E Common iomanip Manipulators Appendix F Escape Sequences Appendix G The C++ Preprocessor