Added ex 45 optionals

(And secretly added the patches/ dir. Don't tell anybody!)
This commit is contained in:
Dave Gauer 2021-02-14 10:49:09 -05:00
parent c9739f8000
commit acaf051e4c
5 changed files with 74 additions and 0 deletions

View file

@ -236,6 +236,14 @@ const exercises = [_]Exercise{
.output = "Elephant A. Elephant B. Elephant C.",
.hint = "Oh no! We forgot Elephant B!",
},
.{
.main_file = "45_optionals.zig",
.output = "The Ultimate Answer: 42.",
},
// optional fields (elephant tail - no longer need circular)
// super-simple struct method
// use struct method for elephant tails
// quiz: add elephant trunk (like tail)!
};
/// Check the zig version to make sure it can compile the examples properly.