XClose

COMP0210: Research Computing with C++

Home
Menu

Week 2: Overview

The Story So Far

  • Intro to C++
  • Compiling with g++ and CMake
  • Variables
  • Functions
  • Loops and Conditionals
  • Console Output

This Week

This week we’ll be further our knowledge of core features of the C++ language and how these relate to clear and efficient code design.

This week will cover:

Type Systems

  • A quick introduction to what types are, and how they are used in C++ in particular.
  • Options for user-defined types.

Passing by Value and by Reference

  • Differences between passing arguments to functions by value and by reference
  • Exracting values from functions by return statements or references
  • Usage of the const keyword

Understanding Classes and Objects

  • Classes as user-defined types.
  • Objects as instances of classes.
  • Access Specifiers
  • Inheritance and Introductory Polymorphism

Common Standard Library Features

  • Containers & Iterators
  • Algorithms & Anonymous Functions
  • Understanding C++ Documentation

Pointers

  • Unique, shared, weak, and raw pointers
  • Introductory memory management
  • Concepts of data ownership