Computer Science: A Structured Programming Approach Using C++ / Edition 1

Computer Science: A Structured Programming Approach Using C++ / Edition 1

by Behrouz A. Forouzan, Richard Gilberg, Richard F. Gilberg
     
 

ISBN-10: 0534952070

ISBN-13: 9780534952075

Pub. Date: 02/28/1999

Publisher: Cengage Learning


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…  See more details below

Overview


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.

Read More

Product Details

ISBN-13:
9780534952075
Publisher:
Cengage Learning
Publication date:
02/28/1999
Series:
West Computer Science Series
Edition description:
Older Edition
Pages:
879
Product dimensions:
8.89(w) x 10.31(h) x 1.61(d)

Table of Contents


1. INTRODUCTION TO COMPUTERS Computer Systems. Computer Hardware. Computer Software. Computing Environments. Computer Languages. Writing, Editing, Compiling, and Linking Programs. Program Execution. System Development. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 2. INTRODUCTION TO THE C++ LANGUAGE Background. C++ Programs. Identifiers. Data Types. Variables. Constants. Coding Constants. Reading and Writing Data. Programming Examples. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 3. STRUCTURE OF A C++ PROGRAM Expressions. Precedence and Associativity. Side Effects. Evaluating Expressions. Statements. Sample Programs. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 4. FUNCTIONS Designing Structured Programs. Functions in C++. User-Defined Functions. Default Parameter Arguments. Standard Library Functions. Scope. A Programming Example-Calculator Program. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 5. SELECTION-MAKING DECISIONS Logical Data and Operators. Two-Way Selection. Multiway Selection. More Standard Library Functions. A Menu Program. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 6. REPETITION Concept of a Loop. Pretest and Post-test Loops. Initialization and Updating. Event-Controlled and Counter-Controlled Loops. Loops in C++. Loop Examples. Other Statements Related to Looping. Looping Applications. Recursion. A Programming Example - The Calculator Program. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 7. TEXT FILES Concept of a File. Files and Streams. Standard Library Input/Output Functions. Formatting Input and Output. File Example. Character Input/Output Functions. Character Input/Output Examples. Detecting File Errors. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 8. ARRAYS Concepts. Using Arrays in C++. Arrays and Functions. Two Common Array Applications. Sorting. Searching. Two-Dimensional Arrays. Multidimensional Arrays. Programming Example-Calculate Row and Column Averages. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 9. POINTERS Concepts. Pointers and Variables. Accessing Variables Through Pointers. Pointer Declaration and Definition. Initialization of Pointer Variables. Pointers and Functions. Pointers to Pointers. Compatibility. LValue and RValue. Arrays and Pointers. Pointer Arithmetic and Arrays. Passing an Array to a Function. Understanding Complicated Declarations. Memory Allocation Functions. Array of Pointers. Programming Application. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 10. DERIVED TYPES-ENUMERATED, STRUCTURE, AND UNION Enumerated Types. Structure. Accessing Structures. Complex Structures. Array of Structures. Unions. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 11. CLASSES Basic Class Concepts. Defining a Class Object. Constructors and Destructors. Complex Class Functions. Programming Application. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 12. MORE CLASS FEATURES Inline Functions. Constructor Initialization List. Overloading. Inheritance. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 13. STRINGS String Concepts. C++ Strings. String Input/Output. Arrays of Strings. String Manipulation Functions. A Programming Example-Morse Code. Designing a String Class. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 14. BINARY FILES Classification of Files. Using Binary Files. Standard Library Functions for Files. Converting File Type. File Program Examples. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets 15. LINKED LISTS Linked List Structure. Basic Linked List Functions. Linked List Design. Programming Example-Linked List Average. Tips and Common Programming Errors. Key Terms. Summary. Practice Sets. APPENDIXES. APPENDIX A: ASCII TABLES. APPENDIX B: RESERVED WORDS. APPENDIX C: FLOWCHARTING. Auxiliary Symbols. Main Symbols. APPENDIX D: NUMBERING SYSTEMS. Computer Numbering Systems. Integer Transformations. Storing Integers. Storing Floats. APPENDIX E: STANDARD LIBRARIES. limits.h. float.h. APPENDIX F: FUNCTION PROTOTYPES. Function Index. Character Library. Math Library. Traditional C I/O Library. C++ I/O Library. Standard Library. String Library. APPENDIX G: PREPROCESSOR DIRECTIVES. File Inclusion. Macro Definition. Conditional Compilation. Preventing Duplicate Library Includes. APPENDIX H: PROGRAM STANDARDS AND STYLES. Global Area. Program Mainline. General Coding Standards. Variables and Structures. Function Definition. Class Declarations. APPENDIX I: MANIPULATORS. Introduction. Manipulators with No Arguments. Manipulators with One Argument. APPENDIX J: CLASSES RELATED TO INPUT AND OUTPUT. ios Class. Classes Inherited From ios. Classes Inherited From istream and ostream. Classes Inherited From iostream. APPENDIX K: C LANGUAGE I/O. Standard Library Input/Output Functions. File Open and Close. Formatted Input/Output Functions. Character Input/Output Functions. String Input/Output Functions. Block Input/Output Functions. File Status Functions. Positioning Functions. Summary of C I/O Functions. APPENDIX L: COMMAND-LINE ARGUMENTS. APPENDIX M: BITWISE OPERATORS. Logical Bitwise Operators. Shift Operators. APPENDIX N: POINTERS TO FUNCTIONS. EXERCISE SOLUTIONS. GLOSSARY. INDEX

Read More

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >