Exercises in this lecture  previous -- Keyboard shortcut: 'p'  next -- Keyboard shortcut: 'n'  Go to the slide, where this exercise belongs -- Keyboard shortcut: 'u'  

Exercise 2.1
Another example/exercise with C++ references


On the accompanying slide we have shown a number of examples that illustrate different uses of reference types in C++.

Your task in this exercise is to come up with yet another good and convincing example of reference types in C++. (Please use your own fantasy - not some internet fantasy).

Your program can be seen as the solution to a programming exercise about references. Please provide a short formulation of this exercise.


There is no solution to this exercise