Tentalabbet

TNM127 · 6 credits · Basic level (G2F) · Datateknik

Programming in C++

Active · next start HT 2027

No exam statistics yet

There is no exam sitting with at least 5 students in the last three academic years. New courses and project-only courses often have no statistics.

Part of 3 programmes

About the course

Aim

The aim of the course is to equip students with the necessary knowledge to develop programs in C++. To pass the course, the student must fulfill following learning outcomes.

  • To use dynamic memory management.
  • To design and implement classes that correctly manage resources, including use of move semantics.
  • To build class hierarchies.
  • To use containers, algorithms, and iterators from the C++ standard template library.

Content

Memory management: stack versus heap, pointers, dynamic memory allocation, common memory handling pitfalls.

Raw pointers and smart pointers. References.

Resource transfer and ownership. RAII.

Classes and inheritance. Constructors and destructors. Operator overloading.

Public inheritance. Virtual functions. Abstract classes. Static versus dynamic binding. Polymorphism. Objects’ slicing.

Lambda functions. Templates. C++ standard template library: container classes, iterators, and algorithms.

Examiner
Aida Nordman
Scheduled hours
54 h
Main field of study
Datateknik
Syllabus on Studieinfo ↗