C++ for Computer Science and Engineering 4e; Vic Broquard (Broquard, 2006).pdf

(8786 KB) Pobierz
Cpp for Computer Science and Engineering
C++ for Computer
Science and Engineering
(4 Edition)
th
Vic Broquard
Broquard eBooks
103 Timberlane
East Peoria, IL 61611
ISBN: 0-9705697-2-6
435745847.001.png
C++ for Computer Science and Engineering
Vic Broquard
Copyright 2000, 2002, 2003, 2006 by Vic Broquard
All rights reserved. No part of this book may be reproduced or transmitted in any form without
written permission of Vic Broquard.
Fourth Edition
ISBN: 0-9705697-2-6
Brief Table of Contents
1
Introduction to Programming
2
Numerical Processing
3
Additional Processing Details
4
Decisions
5
Files and Loops
6
Writing Your Own Functions
7
More on Functions
8
Character Processing and Do Case
9
Arrays
10
Using Arrays
11
Strings
12
Multidimensional Arrays
13
Structures
Appendix A: How to Use Microsoft’s Visual C++ .NET 2005 Compiler
Appendix B: How to Use Microsoft’s Visual C++ .NET 2002 Compiler
Appendix C: How to Use Microsoft’s Visual C++ Version 6.0 Compiler
Index
To all of my dedicated, persevering students,
and to L. Ron Hubbard, who taught me to “Simplify”
Preface
This book assumes you have no previous programming background. It uses a step-by-step
building block approach to gradiently learn how to solve computer science and engineering
problems in the C++ language.
Each chapter has three sections. Section A presents the basic theory and principles of the
current topic. Section B illustrates these basic principles by using applications that are often
found in computer science. Section C illustrates these basic principles by using applications that
may be found in the various engineering disciplines. You should study the basic theory Section A
and then study the appropriate application section. Of course, anyone can benefit by also
reviewing the other application area, since they are frequently interrelated.
The book comes with a self-extracting zip file containing all of the sample programs in
the book along with all of the test data required for the programming assignments.
At the end of each chapter are Design Exercises , Stop Exercises and Programming
Problems . Before you tackle any programming assignments, you should do both the Design and
Stop exercises. The Design Exercises are paper and pencil activities that assist in solidifying the
basic design principles covered in the chapter. The Stop Exercises cover the new syntax of the
language, illustrating many of the more common errors beginners make in coding the language. If
you dutifully do these two sets of exercises before you start in on your programming
assignments, you will have a much better chance of success with drastically lower frustration
level.
If you find any errors or have any suggestions or comments, please email me at
v
Zgłoś jeśli naruszono regulamin