From 9218a3fd4cce4f24671b7f7d283370b6e5dc08d4 Mon Sep 17 00:00:00 2001 From: Patricia Aas Date: Sun, 17 Oct 2021 19:24:42 +0200 Subject: [PATCH] Update README.md --- exercises/14/parameters/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exercises/14/parameters/README.md b/exercises/14/parameters/README.md index b794f90..694fb7e 100644 --- a/exercises/14/parameters/README.md +++ b/exercises/14/parameters/README.md @@ -5,7 +5,7 @@ In this exercise we will look together at what happens when we change a reference parameter to a value or a const reference. -Let's look at this function +Let's look at this function in [`Game.cpp`](../../../lib/Game.cpp) ```cpp void Game::processEvents(InputState & inputState) { @@ -28,6 +28,8 @@ void Game::processEvents(InputState & inputState) { ## Exercise +You can follow along locally: + 1. Make `inputState` a value. What happens when you compile the code? Can you explain why? 2. Now make it a `const` reference. What happens? Can you explain why?