Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Difficulty: 3/10
Date added: 10th of June 2008
In this exercise, you must write a foolproof function.
You are the maintainer of a Thing and the function ReadThing below.
struct Thing { int mX }; |
Make the function ReadThing foolproof. There are four different modifications to do:
View the answer of this exercise.
Feedback can be posted at post the Programmer's Heaven page about this article.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.