Introduction to C++ (and C) Programming
Intro Classes Efficiency OOP
Introduction to C++ (and C) Programming
Hans Petter Langtangen1,2
Simula Research Laboratory1 Dept. of Informatics, Univ. of Oslo2
January 2006
H. P. Langtangen
Introduction to C++ (and C) Programming
Outline
Intro Classes Efficiency OOP
1 Intro to C++ programming
About C and C++
Introductory C++ example
Manipulate data files
Matrix-vector product
The C preprocessor
Exercises
About classes in C++
A simple class
2 Class programming
Class Complex
A vector class
Standard Template Library
3 Efficiency; C++ vs. F77
4 Object-Oriented Numerical Programming
OOP example: ODE solvers
Classes for PDEs
H. P. Langtangen
Introduction to C++ (and C) Programming
Contents
Intro Classes Efficiency OOP
Gentle introduction to C++ File I/O Arrays and loops Detailed explanation of classes with built-in arithmetics Computational efficiency aspects Object-oriented programming and class hierarchies Using C++ objects in numerical applications
H. P. Langtangen
Introduction to C++ (and C) Programming
Intro Classes Efficiency OOP
Required background
Programming experience with either Java or Fortran/Matlab Interest in numerical computing with C++ Interest in low-level details of the computer Knowledge of some C is advantageous (but not required)
H. P. Langtangen
Introduction to C++ (and C) Programming
Intro Classes Efficiency OOP
About learning C++
C++ is a complicated computer language It takes time to master C++ ? one year is the rule of thumb Four days can only give a taste of C++ You need to work intensively with C++ in your own projects to master the language C++ exposes you to lots of "low-level details" ? these are hidden in languages like Java, Matlab and Python Hopefully, you will appreciate the speed and flexibility of C++
H. P. Langtangen
Introduction to C++ (and C) Programming
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.