02198, January 2002

49423 Homepage
Course Material
C++ software
Web Sites
E-bar/G-bar
FAQs
IMM/CST
H H  

Informatics and Mathematical Modelling

Computer Science and Technology

H H H
H H H I I H H
H H H
H H H  for those who know Java

Course Material

Books

The recommended text book for this course
Ira Pohl: C++ for C Programmers, 3.ed., Addison Wesley 1999
480 pages. Much of the material in chapters 2 and 3 is a review of C. 
The lectures are based on this book.
Another (optional) relevant book is 
Bjarne Stroustrup:  "The C++ Programming Language". , Addison Wesley 1997
900 pages. This is a reference book, not a tutorial!

There are literally hundreds of books on C/C++. When choosing a book it is important that the book has been updated to the new ANSI/ISO C++ standard and has a chapter about STL (The Standard Template Library). Most recent introductions to the C++ language run to a thousand pages or more. Considering 49423 being a 3 week course where practical programming should be the main activity (and not reading a 1200 pages book) I have found this 480 pages book the best.  However, if you are a fast reader you may prefer a more wordy book like

Stephen Prata: C++ PRIMER PLUS, Mitchell Waite Signatures Series,
Waite Group Press, 1998. 1000 pages, but contains approximately 3 times as much text as "C++ for C Programmers". This is a good C++ tutorial used at many universities.

Program Examples

The program examples in the book "C++ for C programmers" is available from the books homepage (see above) and (when the course is running) from here:

Program examples from C++ for C Programmers.

Project

Project description (ps) and (pdf)

You will get a copy of the project description at the first lecture.

Lectures

slides:

Lecture 1 (Monday, 7/1-02)
chapter2 (ps) ( pdf
function, classes, decls ( ps ) (pdf)
Lecture 2 (Tuesday, 8/1-02)
pointers  ( ps ) (pdf
references ( ps ) (pdf)
classes (ps) (pdf)
Lecture 3 (Wednesday, 9/1-02)
dynamic-components ( ps) (pdf)
oprt-overloading  ( ps) (pdf)
inheritance ( ps ) (pdf)
EXSHOP: symbolic expressions, ( ps ) ( pdf )
Lecture 4 (Thursday, 10/1-02): XWORKSHOP, scanner, topdown syntaxanalyses 
scanner, to appear.
grammar-parser (ps ) ( pdf )
Grammar for xworkshop2002 suitable for recursive descent analyses, to appear
Lecture 5 (Friday, 11/1-02) :
Templates ( ps) (pdf)
STL containers ( ps) (pdf)
Miscellaneous
Make utility, Avoid Re-inclusion ( ps) (pdf
A few slides about reducing expressions (ps) (pdf)
 

Hans Bruun (hab@imm.dtu.dk) 07-01-2002