This easy-to-read textbook/reference presents an essential guide to object-oriented C++ programming for scientific computing. With a practical focus on learning by example, the theory is supported by numerous exercises. Features: provides a specific focus on the application of C++ to scientific computing, including parallel computing using MPI; stresses the importance of a clear programming style to minimize the introduction of errors into code; presents a practical introduction to procedural programming in C++, covering variables, flow of control, input and output, pointers, functions, and reference variables; exhibits the efficacy of classes, highlighting the main features of object-orientation; examines more advanced C++ features, such as templates and exceptions; supplies useful tips and examples throughout the text, together with chapter-ending exercises, and code available to download from Springer.
Author(s): Joe Pitt-Francis, Jonathan Whiteley (auth.)
Series: Undergraduate Topics in Computer Science
Edition: 1
Publisher: Springer-Verlag London
Year: 2012
Language: English
Pages: 250
Tags: Programming Techniques; Numeric Computing; Simulation and Modeling; Programming Languages, Compilers, Interpreters; Math Applications in Computer Science; Software Engineering
Front Matter....Pages I-XII
Getting Started....Pages 1-24
Flow of Control....Pages 25-42
File Input and Output....Pages 43-53
Pointers....Pages 55-64
Blocks, Functions and Reference Variables....Pages 65-86
An Introduction to Classes....Pages 87-115
Inheritance and Derived Classes....Pages 117-130
Templates....Pages 131-140
Errors and Exceptions....Pages 141-149
Developing Classes for Linear Algebra Calculations....Pages 151-164
An Introduction to Parallel Programming Using MPI....Pages 165-191
Designing Object-Oriented Numerical Libraries....Pages 193-212
Back Matter....Pages 213-250