Sumários

Class 13

13 Março 2026, 08:00 Raquel Bernardino

A group exercise about functions.


Class 12

9 Março 2026, 11:30 Raquel Bernardino

Error handling: throw, try/catch, throwing exceptions as empty classes and the runtime_error class. 

Solution of Exercises 67, 68, and 69.
Exercises 70 and 71 solved by the students.


Class 11

6 Março 2026, 08:00 Raquel Bernardino

Types of passing arguments to a function: pass by value, by reference, and by const reference. 

Recursive functions: the factorial function. 
Solutions to exercises 56 and 57.

Homework: All exercises up to the end of worksheet 4. Read Chapter 5 of the Lecture Notes.


Class 10

2 Março 2026, 11:30 Raquel Bernardino

Introduction to functions: declaration, initialization, and calling.

Solution to exercise 52.

Homework: Read Section 4.3 of Lecture Notes. Exercises up to 55.


Class 9

27 Fevereiro 2026, 08:00 Raquel Bernardino

Vectors of vectors: introduction, creation, manipulation, and printing. 

Solutions to Exercise 47. 

Homework: Exercises up to 51 and read Sections 4.1 and 4.2 of the Lecture Notes.