Physics and astronomy

Programming in C++

Module code: 898F3
Level 7 (Masters)
15 credits in autumn teaching
Teaching method: Practical, Lecture
Assessment modes: Coursework, Computer based exam

After a review of the basic concepts of the C++ language, you are introduced to object oriented programming in C++ and its application to scientific computing. This includes writing and using classes and templates, operator overloading, inheritance, exceptions and error handling. In addition, Eigen, a powerful library for linear algebra is introduced. The results of programs are displayed using the graphics interface dislin.

Module learning outcomes

  • Understanding of the basics of computer architecture and ability to compile, run and debug C++ programs under linux.
  • Understanding of the concept of classes and be ability to implement them in a C++ program.
  • Familiarity with the C++ standard template library and its application to container classes.
  • Ability to implement solutions to common problems in numerical computing and graphical representation of results.