Problem Solving With C++ 7th Edition Pearson International Edition Book/CD Package
International Version
av Walter Savitch
- Format:
- Mixed media product
- Utgiven:
- 2008-04-01
- Språk:
- Engelska
(Computer Bookshops Limited)
Passar bra ihop
|
De som köpt den här boken har ofta också köpt Starting Out with C++ av Tony Gaddis | |||
|
Pris för båda:
1333:-Köp
|
Fler böcker av Walter Savitch
Absolute C++Walter Savitch (häftad) |
Absolute JavaWalter Savitch |
JavaWalter Savitch (häftad) |
Java: Introduction to Problem Solving and Programmin...Walter Savitch | |||
|
607:- Köp
|
574:- Köp
|
848:- Köp
|
508:- Köp
|
Kundrecensioner
Bloggat om Problem Solving With C++ 7th Edition Pearson Interna...
Övrig information
Walter Savitch is Professor Emeritus of Computer Science at the University of California-San Diego. He received his PhD in mathematics from the University of California-Berkeley in 1969. Since that time he has been on the faculty of the University of California-San Diego (UCSD). He served as director of the UCSD Interdisciplinary PhD program in cognitive science for over ten years. He has served as a visiting researcher at the computer science departments of the University of Washington in Seattle and at the University of Colorado in Boulder, and has been a visiting scholar at the Centrum voor Wiskunde en Informatica in Amsterdam. Kenrick Mock is an Associate Professor at the University of Alaska-Anchorage. He has also taught at Washington Stat University, Portland State University, and the University of California-Davis. He teaches undergraduate computer science courses across the curriculum including introductory C++, JavaaA A , Visual BasicA (R) for non-programmers, algorithms, computer security, and artificial intelligence. With the Coastal Marine Institute at UAA, he helped develop a computer system to aid in research about Alaska sea ice and the atmosphere. Before becoming a teacher, Mock was a research scientist and software engineer at IntelaA A . He received a PhD in computer science from UC Davis.
(Computer Bookshops Limited)
Innehållsförteckning
Chapter 1 Introduction to Computers and C++
Programming 1
1.1 COMPUTER SYSTEMS 2
Hardware 2
Software 7
High-Level Languages 8
Compilers 9
History Note 12
1.2 PROGRAMMING AND PROBLEM-SOLVING 12
Algorithms 12
Program Design 15
Object-Oriented Programming 17
The Software Life Cycle 17
1.3 INTRODUCTION TO C++ 19
Origins of the C++ Language 19
A Sample C++ Program 20
Pitfall: Using the Wrong Slash in \n 24
Programming Tip: Input and Output Syntax 24
Layout of a Simple C++ Program 24
Pitfall: Putting a Space before the include File Name 26
Compiling and Running a C++ Program 27
Programming Tip: Getting Your Program to Run 27
1.4 TESTING AND DEBUGGING 30
Kinds of Program Errors 30
Pitfall: Assuming Your Program Is Correct 31
Chapter Summary 32
Answers to Self-Test Exercises 33
Programming Projects 36
Chapter 2 C++ Basics 39
2.1 VARIABLES AND ASSIGNMENTS 40
Variables 40
Names: Identifiers 42
Variable Declarations 44
Assignment Statements 45
Pitfall: Uninitialized Variables 47
Programming Tip: Use Meaningful Names 49
2.2 INPUT AND OUTPUT 50
Output Using cout 50
Include Directives and Namespaces 52
Escape Sequences 53
Programming Tip: End Each Program with a \n or endl 55
Formatting for Numbers with a Decimal Point 55
Input Using cin 56
Designing Input and Output 58
Programming Tip: Line Breaks in I/O 58
2.3 DATA TYPES AND EXPRESSIONS 60
The Types int and double 60
Other Number Types 62
The Type char 63
The Type bool 64
Introduction to the Class string 65
Type Compatibilities 66
Arithmetic Operators and Expressions 69
Pitfall: Whole Numbers in Division 71
More Assignment Statements 73
2.4 SIMPLE FLOW OF CONTROL 74
A Simple Branching Mechanism 74
Pitfall: Strings of Inequalities 80
Pitfall: Using = in place of == 81
Compound Statements 82
Simple Loop Mechanisms 84
Increment and Decrement Operators 87
Programming Example: Charge Card Balance 89
Pitfall: Infinite Loops 90
2.5 PROGRAM STYLE 93
Indenting 93
Comments 94
Naming Constants 96
Chapter Summary 98
Answers to Self-Test Exercises 99
Programming Projects 104
Chapter 3 More Flow of Control 111
3.1 USING BOOLEAN EXPRESSIONS 112
Evaluating Boolean Expressions 112
Pitfall: Boolean Expressions Convert to int Values 116
Enumeration Types (Optional) 119
3.2 ...
(Computer Bookshops Limited)