《C++实验课程》PDF下载

  • 购买积分:10 如何计算积分?
  • 作  者:(美)内尔·戴乐(Nell Dale)著
  • 出 版 社:北京:北京大学出版社
  • 出版年份:1999
  • ISBN:7301040180
  • 页数:237 页
图书介绍:

1 Overview of Programming and Problem Solving 1

Prelab Activities 2

Chapter 1:Prelab Assignment 5

Lesson 1-1:Check Prelab Exercises 5

Lesson 1-2:Basic File Operations 6

Lesson 1-3:Compiling and Running a Program 6

Lesson 1-4:Editing,Running,and Printing a Program File 7

Lesson 1-5:Running a Program with an Error 7

Lesson 1-6:Entering,Compiling,and Running a New Program 8

Postlab Activities 9

2 C++ Syntax and Semantics,and the Program Development Process 10

Prelab Activities 11

Chapter 2:Prelab Assignment 14

Lesson 2-1:Check Prelab Exercises 15

Lesson 2-2:Components of a Program 16

Lesson 2-3:Sending Information to the Output Stream 17

Lesson 2-4:Working with Numeric Expressions 18

Lesson 2-5:Debugging 19

Postlab Activities 20

3 Arithmetic Expressions,Function Calls,and Output 21

Prelab Activities 22

Chapter 3:Prelab Assignment 25

Lesson 3-1:Check Prelab Exercises 26

Lesson 3-2:Arithmetic Operations 27

Lesson 3-3:Formatting Output 28

Lesson 3-4:Value-Returning Functions 30

Lesson 3-5:Debugging 31

Postlab Activities 31

4 Program Input and the Software Design Process 32

Prelab Activities 33

Chapter 4:Prelab Assignment 36

Lesson 4-1:Check Prelab Exercises 37

Lesson 4-2:Input Statement and Data Consistency 38

Lesson 4-3:Input and Output with Files 41

Lesson 4-4:Top-Down Programming 42

Lesson 4-5:Debugging 43

Postlab Activities 44

5 Conditions,Logical Expressions,and Selection Control Structures 45

Prelab Activities 46

Chapter 5:Prelab Assignment 51

Lesson 5-1:Check Prelab Exercises 53

Lesson 5-2:Boolean Expressions 53

Lesson 5-3:If-Then Statements 54

Lesson 5-4:If-Then-Else Statements 55

Lesson 5-5:Nested Logic 57

Lesson 5-6:Test Plan 58

Lesson 5-7:Debugging 59

Postlab Activities 59

6 Looping 60

Prelab Activities 61

Chapter 6:Prelab Assignment 64

Lesson 6-1:Check Prelab Exercises 65

Lesson 6-2:Count-Controlled Loops 66

Lesson 6-3:Event-Controlled Loops 67

Lesson 6-4:Nested Logic 68

Lesson 6-5:Debugging 70

Postlab Activities 71

7 Functions 73

Prelab Activities 74

Chapter 7:Prelab Assignment 78

Lesson 7-1:Check Prelab Exercises 79

Lesson 7-2:Functions without Parameters 80

Lesson 7-3:Functions with Value Parameters 81

Lesson 7-4:Functions with Reference Parameters 82

Lesson 7-5:Debugging 85

Postlab Activities 86

8 Scope,Lifetime,and More on Functions 88

Prelab Activities 89

Chapter 8:Prelab Assignment 91

Lesson 8-1:Check Prelab Exercises 93

Lesson 8-2:Static and Automatic Variables 94

Lesson 8-3:Value-Returning and Void Functions 95

Lesson 8-4:Test Plan 97

Lesson 8-5:Debugging 98

Postlab Activities 98

9 Additional Control Structures 100

Prelab Activities 101

Chapter 9:Prelab Assignment 103

Lesson 9-1:Check Prelab Exercises 105

Lesson 9-2:Multi-Way Branching 106

Lesson 9-3:Additional Control Structures 107

Lesson 9-4:Test Plan 110

Lesson 9-5:Debugging 110

Postlab Activities 111

10 Simple Data Types:Built-In and User-Defined 112

Prelab Activities 113

Chapter 10:Prelab Assignment 117

Lesson 10-1:Check Prelab Exercise 118

Lesson 10-2:Numeric Data Types 119

Lesson 10-3:Char Data Types 121

Lesson 10-4:Enumeration Data Types 123

Lesson 10-5:Debugging 124

Postlab Activities 125

11 One-Dimensional Arrays 126

Prelab Activities 127

Chapter 11:Prelab Assignment 129

Lesson 11-1:Check Prelab Exercises 130

Lesson 11-2:One-Dimensional Array Data Types with Integer Indexes 131

Lesson 11-3: One-Dimensional Array Data Types with Enumeration Indexes 132

Lesson 11-4:Test Plan 133

Postlab Activities 134

12 Applied Arrays:Lists and Strings 135

Prelab Activities 136

Chapter 12:Prelab Assignment 140

Lesson 12-1:Check Prelab Exercises 142

Lesson 12-2:Linear (Unsorted)List Operations 143

Lesson 12-3:Sorted List Operations 144

Lesson 12-4:Strings 145

Lesson 12-5:Debugging 146

Postlab Activities 147

13 Multidimensional Arrays 148

Prelab Activities 149

Chapter 13:Prelab Assignment 150

Lesson 13-1:Check Prelab Exercises 151

Lesson 13-2:Two-Dimensional Tables 152

Lesson 13-3:Multidimensional Tables 154

Lesson 13-4:Debugging 154

Postlab Activities 155

14 Records(C++ Structs) 156

Prelab Activities 157

Chapter 14:Prelab Assignment 159

Lesson 14-1:Check Prelab Exercise 161

Lesson 14-2:Record Data Types 161

Lesson 14-3:Lists as Records 163

Lesson 14-4:Hierarchical Records 165

Lesson 14-5:Arrays of Records 165

Lesson 14-6:Test Plans 167

Postlab Activities 169

15 Classes and Data Abstraction 170

Prelab Activities 171

Chapter 15:Prelab Assignment 174

Lesson 15-1:Check Prelab Exercises 176

Lesson 15-2:Class Data Type 176

Lesson 15-3:Header and Implementation Files 178

Lesson 15-4:Class Constructors 180

Lesson 15-5:Debugging 181

Postlab Activities 182

16 Object-Oriented Software Development 183

Prelab Activities 184

Chapter 16:Prelab Assignment 186

Lesson 16-2:Classes 188

Lesson 16-1:Check Prelab Exercises 188

Lesson 16-3:Classes with Inheritance 190

Lesson 16-4:Virtual Methods 191

Lesson 16-5:Debugging 192

Postlab Activities 193

17 Pointers,Dynamic Data,and Reference Types 194

Prelab Activities 195

Chapter 17:Prelab Assignment 199

Lesson 17-1:Check Prelab Exercises 200

Lesson 17-2:Pointer Variables 200

Lesson 17-3:Dynamic Data 201

Lesson 17-4:Classes and Dynamic Data 202

Lesson 17-5:Debugging 203

Postlab Activities 203

18 Linked Structures 205

Prelab Activities 206

Chapter 18:Prelab Assignment 207

Lesson 18-1:Check Prelab Exercises 209

Lesson 18-2:Unordered Linked Lists 209

Lesson 18-3:Linked Lists of Objects 212

Lesson 18-4:Sorted Lists of Objects 213

Lesson 18-5:Debugging 214

Postlab Activities 215

19 Recursion 216

Prelab Activities 217

Chapter 19:Prelab Assignment 218

Lesson 19-1:Check Prelab Exercises 219

Lesson 19-2:Simple Variables 220

Lesson 19-3:Structured Variables 221

Lesson 19-4:Debugging 222

Postlab Activities 222

Appendixes 223

Glossary 226