did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780534952075

Computer Science A Structured Programming Approach Using C++

by ;
  • ISBN13:

    9780534952075

  • ISBN10:

    0534952070

  • Edition: 1st
  • Format: Hardcover
  • Copyright: 1999-02-22
  • Publisher: Course Technology
  • View Upgraded Edition
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $91.66

Summary

This book, in the words of the authors, "teaches students first how to write good functions, and then how to implement them in classes." Designed for students with no prior programming experience, the book explains each basic principle of programming first in general, language-independent terms, and then discusses how the programming construct in question is implemented in C++. Given this approach, classes are presented in the second half of the text. The book incorporates coverage of software engineering principles and procedures throughout (starting with flowcharts), with each chapter concluding with a discussion of underlying software engineering concepts. Unlike competing books that are too difficult for first-year students, Forouzan and Gilberg take special pains to make their programming examples consistent and easy to read. This careful writing makes this book a solid choice for professors looking for a book that is easy to read and follow, without compromising the material's rigor.

Table of Contents

CHAPTER 1 INTRODUCTION TO COMPUTERS
1(24)
1-1 COMPUTER SYSTEMS
2(1)
1-2 COMPUTER HARDWARE
2(1)
1-3 COMPUTER SOFTWARE
3(2)
System Software
3(1)
Application Software
4(1)
1-4 COMPUTING ENVIRONMENTS
5(2)
Personal Computing Environment
5(1)
Time-Sharing Environment
5(1)
Client/Server Environment
5(2)
1-5 COMPUTER LANGUAGES
7(2)
Machine Languages
7(1)
Symbolic Languages
8(1)
High-Level Languages
8(1)
Natural Languages
9(1)
1-6 WRITING, EDITING, COMPILING, AND LINKING PROGRAMS
9(2)
Writing and Editing Programs
10(1)
Compiling Programs
10(1)
Linking Programs
10(1)
1-7 PROGRAM EXECUTION
11(1)
1-8 SYSTEM DEVELOPMENT
12(9)
System Development Life Cycle
12(1)
Program Development
13(7)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
20(1)
1-9 TIPS AND COMMON PROGRAMMING ERRORS
21(1)
1-10 KEY TERMS
22(1)
1-11 SUMMARY
22(1)
1-12 PRACTICE SETS
23(1)
Exercises
23(1)
Problems
24(1)
CHAPTER 2 INTRODUCTION TO THE C++ LANGUAGE
25(46)
2-1 BACKGROUND
26(1)
2-2 C++ PROGRAMS
27(5)
Structure of a C++ Program
27(1)
A Simple Program
28(1)
Your First Program
28(2)
Comments
30(2)
2-3 IDENTIFIERS
32(1)
2-4 DATA TYPES
33(5)
Void
34(1)
Integer
34(1)
Char
35(1)
Floating Point
36(1)
Logical Data in C++
37(1)
2-5 VARIABLES
38(3)
Variable Declaration and Definition
38(1)
Variable Initialization
39(2)
2-6 CONSTANTS
41(3)
Integer Constants
41(1)
Float Constants
42(1)
Character Constants
42(1)
String Constants
43(1)
Boolean Constants
44(1)
2-7 CODING CONSTANTS
44(2)
Literal Constants
44(1)
Defined Constants
44(1)
Memory Constants
45(1)
Summary
46(1)
2-8 READING AND WRITING DATA
46(11)
Standard Files
46(1)
Standard Output (cout)
47(2)
Formatting Output
49(6)
Standard Input (cin)
55(2)
2-9 PROGRAMMING EXAMPLES
57(8)
Print Character Values
57(1)
Calculate Area and Circumference
58(4)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
62(1)
Program Documentation
62(1)
Data Names
63(1)
Data Hiding
64(1)
2-10 TIPS AND COMMON PROGRAMMING ERRORS
65(1)
2-11 KEY TERMS
65(1)
2-12 SUMMARY
66(1)
2-13 PRACTICE SETS
67(1)
Exercises
67(2)
Problems
69(1)
Projects
69(2)
CHAPTER 3 STRUCTURE OF A C++ PROGRAM
71(39)
3-1 EXPRESSIONS
72(10)
Primary Expressions
73(1)
Binary Expressions
74(2)
Assignment Expressions
76(2)
Postfix Expressions
78(1)
Unary Expressions
79(3)
3-2 PRECEDENCE AND ASSOCIATIVITY
82(3)
Precedence
82(1)
Associativity
83(2)
3-3 SIDE EFFECTS
85(1)
3-4 EVALUATING EXPRESSIONS
86(3)
Warning
88(1)
3-5 MIXED TYPE EXPRESSIONS
89(2)
Implicit Type Conversion
90(1)
Explicit Type Conversion (Cast)
91(1)
3-6 STATEMENTS
91(3)
Expression Statements
92(1)
Compound Statements
93(1)
Statements and Defined Constants
94(1)
3-7 SAMPLE PROGRAMS
94(10)
Example: Calculate Average
94(2)
Example: Fahrenheit to Celsius
96(1)
Example: Calculate Sales Total
97(2)
Example: Calculate Student Score
99(4)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
103(1)
KISS
103(1)
Parentheses
103(1)
User Communication
104(1)
3-8 TIPS AND COMMON PROGRAMMING ERRORS
104(1)
3-9 KEY TERMS
105(1)
3-10 SUMMARY
106(1)
3-11 PRACTICE SETS
107(1)
Exercises
107(1)
Problems
107(1)
Projects
108(2)
CHAPTER 4 FUNCTIONS
110(56)
4-1 DESIGNING STRUCTURED PROGRAMS
111(1)
4-2 FUNCTIONS IN C++
112(3)
4-3 USER-DEFINED FUNCTIONS
115(21)
Function Definition
116(2)
Prototype Declaration
118(1)
The Function Call
119(3)
Function Examples
122(8)
Parameter Passing
130(6)
4-4 DEFAULT PARAMETER ARGUMENTS
136(1)
4-5 STANDARD LIBRARY FUNCTIONS
137(7)
Standard Functions for Mathematical Manipulation
137(3)
General Library Functions
140(4)
4-6 SCOPE
144(3)
General Rule
144(1)
Global Scope
145(1)
Local Scope
145(2)
4-7 A PROGRAMMING EXAMPLE--CALCULATOR PROGRAM
147(9)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
149(1)
Structure Charts
149(1)
Structure Chart Rules and Symbols
149(3)
Functional Cohesion
152(2)
Top-Down Development
154(2)
4-8 TIPS AND COMMON PROGRAMMING ERRORS
156(1)
4-9 KEY TERMS
157(1)
4-10 SUMMARY
158(1)
4-11 PRACTICE SETS
158(1)
Exercises
158(3)
Problems
161(1)
Projects
162(4)
CHAPTER 5 SELECTION-MAKING DECISIONS
166(53)
5-1 LOGICAL DATA AND OPERATORS
167(6)
Logical Data in C++
167(1)
Logical Operators
167(1)
Evaluating Logical Expressions
168(3)
Relational Operators
171(2)
5-2 TWO-WAY SELECTION
173(14)
Conditional Expressions
181(1)
Two-Way Selection Example
182(5)
5-3 MULTIWAY SELECTION
187(9)
The switch Statement
188(5)
The else-if Statement
193(3)
5-4 MORE STANDARD LIBRARY FUNCTIONS
196(2)
Standard Characters Functions
196(2)
5-5 A MENU PROGRAM
198(11)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
205(1)
Dependent Statements
205(1)
Negative Logic
205(2)
Rules for Selection Statements
207(1)
Selection in Structure Charts
207(2)
5-6 TIPS AND COMMON PROGRAMMING ERRORS
209(1)
5-7 KEY TERMS
210(1)
5-8 SUMMARY
210(1)
5-9 PRACTICE SETS
211(1)
Exercises
211(3)
Problems
214(1)
Projects
215(4)
CHAPTER 6 REPETITION
219(68)
6-1 CONCEPT OF A LOOP
220(1)
6-2 PRETEST AND POST-TEST LOOPS
220(2)
6-3 INITIALIZATION AND UPDATING
222(1)
Loop Initialization
222(1)
Loop Update
223(1)
6-4 EVENT-CONTROLLED AND COUNTER-CONTROLLED LOOPS
223(2)
Event-Controlled Loops
223(1)
Counter-Controlled Loops
224(1)
Loop Comparison
225(1)
6-5 LOOPS IN C++
225(11)
The while Loop
225(3)
The for Loop
228(3)
The do... while Loop
231(3)
The Comma Expression
234(2)
6-6 LOOP EXAMPLES
236(9)
for Loops
236(4)
while Loops
240(1)
do... while Loops
241(4)
6-7 OTHER STATEMENTS RELATED TO LOOPING
245(3)
break
245(1)
continue
246(2)
6-8 LOOPING APPLICATIONS
248(5)
Summation
248(1)
Product
249(1)
Smallest and Largest
250(1)
Inquiries
251(2)
6-9 RECURSION
253(12)
Iterative Definition
253(1)
Recursive Definition
254(1)
Factorial--Iterative Solution
254(1)
Factorial--Recursive Solution
255(1)
Designing Recursive Functions
256(1)
Fibonacci Numbers
257(3)
Limitations of Recursion
260(1)
The Towers of Hanoi
261(1)
Recursive Solution of The Towers of Hanoi
261(4)
6-10 A PROGRAMMING EXAMPLE--THE CALCULATOR PROGRAM
265(9)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
268(1)
Loops in Structure Charts
268(1)
Determining Algorithm Efficiency
269(1)
Linear Loops
269(1)
Logarithmic Loops
270(1)
Nested Loops
271(1)
Big-O Notation
272(1)
Standard Measures of Efficiency
273(1)
6-11 TIPS AND COMMON PROGRAMMING ERRORS
274(1)
6-12 KEY TERMS
275(1)
6-13 SUMMARY
276(1)
6-14 PRACTICE SETS
277(1)
Exercises
277(3)
Problems
280(2)
Projects
282(5)
CHAPTER 7 TEXT FILES
287(42)
7-1 CONCEPT OF A FILE
288(1)
7-2 FILES AND STREAMS
289(3)
Streams
289(2)
Standard Files
291(1)
User Files
291(1)
File-Stream Association
291(1)
7-3 STANDARD LIBRARY INPUT/OUTPUT FUNCTIONS
292(4)
File Open and Close
292(4)
7-4 FORMATTING INPUT AND OUTPUT
296(9)
Input/Output Stream Flags
296(6)
Control Variables
302(2)
Manipulators
304(1)
Summary
305(1)
7-5 FILE EXAMPLE
305(4)
7-6 CHARACTER INPUT/OUTPUT FUNCTIONS
309(1)
get
309(1)
put
310(1)
7-7 CHARACTER INPUT/OUTPUT EXAMPLES
310(4)
Create Text File
310(1)
Copy Text File
311(1)
Count Characters and Lines
312(1)
Count Words in File
313(1)
7-8 DETECTING FILE ERRORS
314(9)
Stream Status
315(2)
Error Recovery
317(3)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
320(1)
Testing Files
320(2)
Data Terminology
322(1)
7-9 TIPS AND COMMON PROGRAMMING ERRORS
323(1)
7-10 KEY TERMS
324(1)
7-11 SUMMARY
324(1)
7-12 PRACTICE SETS
325(1)
Exercises
325(1)
Problems
326(1)
Projects
327(2)
CHAPTER 8 ARRAYS
329(68)
8-1 CONCEPTS
330(2)
8-2 USING ARRAYS IN C++
332(7)
Declaration and Definition
333(1)
Accessing Elements in Arrays
333(1)
Storing Values in Arrays
334(4)
Precedence of Index Operators
338(1)
Index Range Checking
338(1)
8-3 ARRAYS AND FUNCTIONS
339(3)
Passing Individual Elements
340(1)
Passing the Whole Array
340(2)
8-4 TWO COMMON ARRAY APPLICATIONS
342(7)
Frequency Arrays
343(1)
Histograms
344(5)
8-5 SORTING
349(8)
Selection Sort
349(1)
Selection Sort Algorithm
350(2)
Bubble Sort
352(1)
Bubble Sort Algorithm
353(1)
Insertion Sort
354(1)
Insertion Sort Algorithm
355(2)
Sort Conclusions
357(1)
8-6 SEARCHING
357(7)
Sequential Search
357(3)
Binary Search
360(4)
8-7 TWO-DIMENSIONAL ARRAYS
364(9)
Declaring and Defining Two-Dimensional Arrays
365(4)
Passing a Two-Dimensional Array to a Function
369(2)
Array Example
371(2)
8-8 MULTIDIMENSIONAL ARRAYS
373(2)
Declaring and Defining Multidimensional Arrays
373(2)
8-9 PROGRAMMING EXAMPLE--CALCULATE ROW AND COLUMN AVERAGES
375(9)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
380(1)
Testing Sorts
380(1)
Testing Searches
380(1)
Analyzing Sort Algorithms
380(2)
Analyzing Search Algorithms
382(2)
8-10 TIPS AND COMMON PROGRAMMING ERRORS
384(1)
8-11 KEY TERMS
385(1)
8-12 SUMMARY
385(1)
8-13 PRACTICE SETS
386(1)
Exercises
386(2)
Problems
388(3)
Projects
391(6)
CHAPTER 9 POINTERS
397(75)
9-1 CONCEPTS
398(2)
Pointer Constants
398(1)
Pointer Values
399(1)
9-2 POINTER VARIABLES
400(2)
9-3 ACCESSING VARIABLES THROUGH POINTERS
402(1)
The Indirection Operator
402(1)
9-4 POINTER DECLARATION AND DEFINITION
403(1)
Example
404(1)
9-5 INITIALIZATION OF POINTER VARIABLES
404(6)
Example: Change Variables and Fun with Pointers
406(1)
Example: Add Two Numbers
407(1)
Example: Pointer Flexibility
408(1)
Example: Multiple Pointers for One Variable
409(1)
9-6 POINTERS AND FUNCTIONS
410(2)
Pointers as Formal Parameters
410(1)
Functions Returning Pointers
411(1)
9-7 POINTERS TO POINTERS
412(3)
Pointer-to-Pointer Example
413(2)
9-8 COMPATIBILITY
415(3)
Compatibility and the void Pointer
416(1)
Casting Pointers
416(2)
9-9 LVALUE AND RVALUE
418(1)
9-10 ARRAYS AND POINTERS
419(3)
9-11 POINTER ARITHMETIC AND ARRAYS
422(6)
Pointers and One-Dimensional Arrays
422(3)
Pointers and Other Operators
425(2)
Pointers and Two-Dimensional Arrays
427(1)
9-12 PASSING AN ARRAY TO A FUNCTION
428(3)
9-13 UNDERSTANDING COMPLICATED DECLARATIONS
431(2)
Examples Using the Right-Left Rule
431(2)
9-14 MEMORY ALLOCATION FUNCTIONS
433(5)
Memory Usage
434(1)
Memory Allocation (new)
435(2)
Initialization of Dynamic Memory
437(1)
Releasing Memory (delete)
437(1)
9-15 ARRAY OF POINTERS
438(1)
9-16 PROGRAMMING APPLICATION
439(13)
Selection Sort Revisited
439(4)
Dynamic Array
443(7)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
450(1)
Pointers and Function Calls
450(1)
Pointers and Arrays
450(1)
Array Index Commutativity
450(1)
Dynamic Memory: Theory versus Practice
451(1)
9-17 TIPS AND COMMON PROGRAMMING ERRORS
452(2)
9-18 KEY TERMS
454(1)
9-19 SUMMARY
454(2)
9-20 PRACTICE SETS
456(1)
Exercises
456(9)
Problems
465(2)
Projects
467(5)
CHAPTER 10 DERIVED TYPES--ENUMERATED, STRUCTURE, AND UNION
472(33)
10-1 ENUMERATED TYPES
473(2)
10-2 STRUCTURE
475(2)
Structure Declaration and Definition
476(1)
Initialization
477(1)
10-3 ACCESSING STRUCTURES
477(5)
Referencing Individual Fields
478(1)
Precedence of Member Operator
479(1)
Structure Operations
479(1)
Pointer to Structures
480(2)
Selection Operator
482(1)
10-4 COMPLEX STRUCTURES
482(5)
Nested Structures
483(1)
Structures Containing Arrays
484(2)
Structure Containing Pointers
486(1)
10-5 ARRAY OF STRUCTURES
487(1)
10-6 UNIONS
488(9)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
493(1)
Coupling
493(3)
Data Hiding
496(1)
Summary
496(1)
10-7 TIPS AND COMMON PROGRAMMING ERRORS
497(1)
10-8 KEY TERMS
497(1)
10-9 SUMMARY
498(1)
10-10 PRACTICE SETS
499(1)
Exercises
499(2)
Problems
501(1)
Projects
502(3)
CHAPTER 11 CLASSES
505(50)
11-1 BASIC CLASS CONCEPTS
506(5)
Access Specifiers
507(1)
Creating a Class
508(3)
11-2 DEFINING A CLASS OBJECT
511(5)
Instantiation
511(1)
Accessing Class Members
511(1)
Using Classes
512(4)
11-3 CONSTRUCTORS AND DESTRUCTORS
516(9)
Constructors
516(5)
Copy Constructor
521(3)
Destructors
524(1)
11-4 COMPLEX CLASS FUNCTIONS
525(8)
Unary Class Functions
525(2)
Binary Class Functions
527(6)
11-5 PROGRAMMING APPLICATION
533(15)
Elevator Class
535(9)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
544(1)
Program Design Concepts
544(1)
Information Hiding
544(1)
Cohesion
544(3)
Summary
547(1)
11-6 TIPS AND COMMON PROGRAMMING ERRORS
548(1)
11-7 KEY TERMS
548(1)
11-8 SUMMARY
549(1)
11-9 PRACTICE SETS
550(1)
Exercises
550(2)
Problems
552(1)
Projects
553(2)
CHAPTER 12 MORE CLASS FEATURES
555(35)
12-1 INLINE FUNCTIONS
556(2)
Global Inline Functions
556(1)
Inline Member Functions
556(2)
12-2 CONSTRUCTOR INITIALIZATION LIST
558(1)
12-3 OVERLOADING
559(4)
Function Overloading
559(1)
Operator Overloading
559(4)
12-4 INHERITANCE
563(19)
Basic Concepts
563(4)
Polygon-Triangle Implementation
567(3)
Inheritance Types--Private, Protected, Public
570(2)
Constructors and Destructors
572(5)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
577(1)
Quality Defined
577(1)
Quality Factors
578(2)
The Quality Circle
580(1)
Conclusion
581(1)
12-5 TIPS AND COMMON PROGRAMMING ERRORS
582(1)
12-6 KEY TERMS
582(1)
12-7 SUMMARY
583(1)
12-8 PRACTICE SET
584(1)
Exercises
584(4)
Problems
588(1)
Projects
589(1)
CHAPTER 13 STRINGS
590(67)
13-1 STRING CONCEPTS
591(1)
Fixed-Length Strings
591(1)
Variable-Length Strings
591(1)
13-2 C++ STRINGS
592(5)
Storing Strings
592(1)
The String Delimiter
593(1)
String Literals
594(1)
Strings and Characters
594(1)
Strings as Variables
595(2)
Strings and Pointers
597(1)
13-3 STRING INPUT/OUTPUT
597(8)
String Input (XXX)
598(1)
String Output (XXX)
599(1)
Read String--Getline()
599(2)
Examples
601(4)
13-4 ARRAYS OF STRINGS
605(2)
13-5 STRING MANIPULATION FUNCTIONS
607(15)
String Length (strlen)
607(1)
String Copy
607(5)
String Compare
612(3)
String Concatenate
615(1)
Character in String
616(1)
String in String
616(1)
String Span
617(1)
String Examples
618(4)
13-6 A PROGRAMMING EXAMPLE--MORSE CODE
622(9)
13-7 DESIGNING A STRING CLASS
631(18)
The String Class
631(1)
String Class Constructors
632(1)
String Class Destructor
633(1)
String Operators
634(4)
String I/O Operators
638(2)
String Class Implementation
640(3)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
643(1)
Payroll Case Study
643(1)
Program Design Steps
644(1)
Structure Chart Design
644(5)
13-8 TIPS AND COMMON PROGRAMMING ERRORS
649(1)
13-9 KEY TERMS
649(1)
13-10 SUMMARY
650(1)
13-11 PRACTICE SETS
651(1)
Exercises
651(3)
Problems
654(1)
Projects
655(2)
CHAPTER 14 BINARY FILES
657(48)
14-1 CLASSIFICATION OF FILES
658(3)
Text Files
659(1)
Binary Files
659(2)
14-2 USING BINARY FILES
661(3)
State of a File
661(1)
Opening Binary Files
662(2)
14-3 STANDARD LIBRARY FUNCTIONS FOR FILES
664(10)
Block Input/Output Functions
665(5)
Positioning Functions
670(2)
Block I/O Example: Append Files
672(2)
14-4 CONVERTING FILE TYPE
674(8)
Creating a Binary File from a Text File
674(3)
Creating a Text File from a Binary File
677(5)
14-5 FILE PROGRAM EXAMPLES
682(12)
Random File Accessing
682(3)
Merge Files
685(4)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
689(1)
Update Files
689(1)
Sequential File Update
689(1)
The Update Program Design
690(2)
Update Errors
692(1)
Update Structure Chart
692(1)
Update Logic
693(1)
Summary
694(1)
14-6 TIPS AND COMMON PROGRAMMING ERRORS
694(1)
14-7 KEY TERMS
695(1)
14-8 SUMMARY
696(1)
14-9 PRACTICE SETS
696(1)
Exercises
696(5)
Problems
701(1)
Projects
702(3)
CHAPTER 15 LINKED LISTS
705(44)
15-1 LINKED LIST STRUCTURE
706(2)
Nodes
706(1)
Declarations for a Linked List
707(1)
Link List Order
707(1)
Pointers to Linked Lists
707(1)
15-2 BASIC LINKED LIST FUNCTIONS
708(11)
Add a Node
708(5)
Delete a Node
713(2)
Search Linked List
715(2)
Traversing Linked Lists
717(2)
15-3 LINKED LIST DESIGN
719(11)
The Node Class
719(1)
The List Class
720(6)
The Class Iterator
726(4)
15-4 PROGRAMMING EXAMPLE--LINKED LIST AVERAGE
730(10)
Build Linked List
731(1)
Print List
732(1)
Print List Average
733(3)
SOFTWARE ENGINEERING AND PROGRAMMING STYLE
736(1)
Atomic and Composite Data
736(1)
Data Structure
736(1)
Abstract Data Type
737(1)
A Model for an Abstract Data Type
738(1)
ADT Data Structure
739(1)
15-5 TIPS AND COMMON PROGRAMMING ERRORS
740(1)
15-6 KEY TERMS
741(1)
15-7 SUMMARY
741(1)
15-8 PRACTICE SETS
742(1)
Exercises
742(2)
Problems
744(1)
Projects
745(4)
APPENDIX A ASCII TABLES
749(4)
APPENDIX B RESERVED WORDS
753(1)
APPENDIX C FLOWCHARTING
754(12)
C-1 AUXILIARY SYMBOLS
755(1)
Flow Lines
755(1)
Connectors
755(1)
C-2 MAIN SYMBOLS
756(10)
Sequence
756(2)
Selection Statements
758(3)
Looping Statements
761(5)
APPENDIX D NUMBERING SYSTEMS
766(12)
D-1 COMPUTER NUMBERING SYSTEMS
767(2)
Decimal Numbers
767(1)
Binary Numbers
767(1)
Octal Numbers
768(1)
Hexadecimal Numbers
768(1)
D-2 INTEGER TRANSFORMATIONS
769(1)
Binary to Decimal
769(1)
Decimal to Binary
769(1)
Binary to Octal or Hexadecimal
770(1)
D-3 STORING INTEGERS
770(6)
Unsigned Integers
771(1)
Signed Integers
772(4)
D-4 STORING FLOATS
776(2)
APPENDIX E STANDARD LIBRARIES
778(2)
E-1 limits.h
778(1)
E-2 float.h
779(1)
APPENDIX F FUNCTION PROTOTYPES
780(8)
F-1 FUNCTION INDEX
780(1)
F-2 CHARACTER LIBRARY
781(1)
F-3 MATH LIBRARY
782(1)
F-4 TRADITIONAL C I/O LIBRARY
782(2)
General I/O
783(1)
Formatted I/O
783(1)
Character I/O
783(1)
File I/O
783(1)
String I/O
783(1)
System File Control
783(1)
F-5 C++ I/O LIBRARY
784(1)
General
784(1)
File Status
784(1)
Output Formatting
784(1)
Block I/O
784(1)
Character I/O
784(1)
Line I/O
785(1)
Miscellaneous I/O
785(1)
Manipulators
785(1)
F-6 STANDARD LIBRARY
785(1)
Math Functions
785(1)
Memory Functions
786(1)
Program Control
786(1)
System Communication
786(1)
Conversion Functions
786(1)
F-7 STRING LIBRARY
786(1)
Copying Data
786(1)
Comparing Data
786(1)
String Lengths
787(1)
F-8 TIME
787(1)
APPENDIX G PREPROCESSOR DIRECTIVES
788(14)
G-1 FILE INCLUSION
789(1)
G-2 MACRO DEFINITION
790(6)
Simple Commands
790(1)
Parameterized Macro
791(2)
Nested Macros
793(1)
Macro Statement Continuation
794(1)
String Command (#)
794(2)
Merge Command (##)
796(1)
Undefine Command
796(1)
G-3 CONDITIONAL COMPILATION
796(4)
if...else Commands
797(1)
Conditional Multiway Selection
798(1)
Excluding Code
798(1)
If Defined (ifdef/ifndef)
799(1)
G-4 PREVENTING DUPLICATE LIBRARY INCLUDES
800(2)
APPENDIX H PROGRAM STANDARDS AND STYLES
802(5)
H-1 GLOBAL AREA
803(1)
H-2 PROGRAM MAINLINE
804(1)
H-3 GENERAL CODING STANDARDS
804(1)
H-4 VARIABLES AND STRUCTURES
805(1)
H-5 FUNCTION DEFINITION
805(1)
H-6 CLASS DECLARATIONS
806(1)
APPENDIX I MANIPULATORS
807(5)
I-1 INTRODUCTION
808(1)
1-2 MANIPULATORS WITH NO ARGUMENTS
809(1)
I-3 MANIPULATORS WITH ONE ARGUMENT
810(2)
APPENDIX J CLASSES RELATED TO INPUT AND OUTPUT
812(5)
J-1 ios CLASS
813(2)
Error-State Flags
813(1)
Mode Flags
813(1)
Seek Flags
813(1)
Format Flags
814(1)
Format Parameters
814(1)
J-2 CLASSES INHERITED FROM ios
815(1)
Input Stream
815(1)
Output Stream
815(1)
J-3 CLASSES INHERITED FROM istream AND ostream
815(1)
Input File Stream
815(1)
Input/Output Stream
816(1)
Output File Stream
816(1)
J-4 CLASSES INHERITED FROM iostream
816(1)
APPENDIX K C LANGUAGE I/O
817(17)
K-1 STANDARD LIBRARY INPUT/OUTPUT FUNCTIONS
818(1)
Files and Streams in C
818(1)
File Table
818(1)
Standard C Files
818(1)
User Files
819(1)
K-2 FILE OPEN AND CLOSE
819(1)
K-3 FORMATTED INPUT/OUTPUT FUNCTIONS
820(7)
Input Formatting
820(1)
Output Formatting
821(1)
Format String
822(5)
K-4 CHARACTER INPUT/OUTPUT FUNCTIONS
827(1)
K-5 STRING INPUT/OUTPUT FUNCTIONS
828(2)
K-6 BLOCK INPUT/OUTPUT FUNCTIONS
830(1)
K-7 FILE STATUS FUNCTIONS
831(1)
K-8 POSITIONING FUNCTIONS
832(1)
K-9 SUMMARY OF C I/O FUNCTIONS
833(1)
APPENDIX L COMMAND-LINE ARGUMENTS
834(4)
APPENDIX M BITWISE OPERATORS
838(6)
M-1 LOGICAL BITWISE OPERATORS
839(2)
Bitwise and Operator
839(1)
Forcing to Zero
839(1)
Bitwise Inclusive or Operator
840(1)
Forcing to One
840(1)
Bitwise Exclusive or Operator
840(1)
Forcing a Change
840(1)
One's Complement Operator
841(1)
M-2 SHIFT OPERATORS
841(3)
Bitwise Shift Left Operator
841(1)
Multiplying by Two
842(1)
Bitwise Shift Right Operator
842(1)
Dividing by Two
843(1)
APPENDIX N POINTERS TO FUNCTIONS
844(3)
EXERCISE SOLUTIONS 847(11)
GLOSSARY 858(13)
INDEX 871

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program