C++ Toolkit for Engineers and Scientists
This book describes the design, construction, and use of a numerical analysis software toolkit. It's written in C+ +, Version 2. 0, and makes essential use of that language's Object-Oriented Programming (OOP) features. Its development environment is the B
- PDF / 47,895,115 Bytes
- 399 Pages / 504.567 x 720 pts Page_size
- 215 Downloads / 407 Views
Springer Science+Business Media, LLC
James T. Smith
C++ Toolkit for Engineers and Scientists Second Edition With 12 Illustrations
i
Springer
James T. Smith Department of Mathematics San Francisco State University 1600 Holloway A venue San Francisco, CA 94132-1722 USA [email protected]
Windows 95, 98, NT are registered trademarks of the Microsoft Corporation. Intel486 is a registered trademark of Intel.
Library of Congress Cataloging-in-Publication Data Smith, James T., 1939C++ toolkit for engineers and scientists/James T. Smith. p. cm. Includes bibliographical references.
Additional material ta this book can be downloded fram http://extras.springer.com.
1. C++ (Computer program language) 1. Title. QA76.73.CI53S654 1999 005.13'3~c21 99-18595
Printed on acid-free paper. ISBN 978-0-387-98797-2 DOI 10.1007/978-1-4612-1474-8
ISBN 978-1-4612-1474-8 (eBook)
© 1999 Springer Science+Business Media New York Originally published by Springer-Verlag New York Inc. in 1999
All rights reserved. This work may not be translated or copied in whole or in part without the written permission of the publisher (Springer Science+Business Media, LLC), except for brief excerpts in connection with reviews or scholarly analysis. Use in connection with any form of information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or- hereafter developed is forbidden. The use of general descriptive names, trade names, trademarks, etc., in this publication, even if the former are not especially identified, is not to be taken as a sign that such names, as understood by the Trade Marks and Merchandise Marks Act, may accordingly be used freely by anyone. Production managed by Frank McGuckin; manufacturing supervised by Joe Quatela. Camera-ready copy provided by the author.
987654321
Contents
Preface XIII About the Author xv 1
Introduction 1 1.1
1.2 1.3
1.4
1.5 1.6
WHO NEEDS THIS BOOK? 2 Prerequisites 4 WORKING WITH SOFTWARE TOOLS 5 THIS BOOK'S STRUCTURE 6 What Would Come Next? 8 The Accompanying and Optional Diskettes 8 MSP Revisions and Extensions 9 C, C++, AND BORLAND C++ 9 Why Use C++? 9 Is C+ + a High-Level Language? 10 Software Tools 12 Minor Considerations 12 Borland C+ + 13 THIS BOOK'S MSP SOFTWARE TOOLKIT 14 REFERENCES AND FURTHER TOPICS 16
v
vi
c++ Toolkit for Engineers and Scientists
2
Software Organization 21 2.1
SOFTWARE LAYERS 21 Basic Input/Output System (BIOS) 22 DOS/Windows Opemting System 24 Borland C++ Libmry and Run-Time Support 26 Mathematical Software Package (MSP) 27 Client Programs 28 2.2 C+ + MINOR FEATURES 28 / / Comments 29 Local Variable Declarations 29 new and delete Opemtors 29 Mandatory Function Prototypes 30 Initialized Parameters 30 Reference Parameters 30 C++ Version 2 Stream Input/Output 31 2.3 OVERLOADING 33 Function Templates 34 Using Templates for Libmry Code 35 2.4 ABSTRACT DATA TYPES AND CLASSES 36 Abstract Data Types (ADTs) 37 Parallel with Higher Mathematics 38 C+ + Classes and Objects 38 Class Templates 39 Member Fu