Added ex. 46 optionals 2 - elephants!
This commit is contained in:
parent
62fc8f7139
commit
e32bd7ce30
4 changed files with 64 additions and 1 deletions
|
|
@ -240,7 +240,11 @@ const exercises = [_]Exercise{
|
|||
.main_file = "45_optionals.zig",
|
||||
.output = "The Ultimate Answer: 42.",
|
||||
},
|
||||
// optional fields (elephant tail - no longer need circular)
|
||||
.{
|
||||
.main_file = "46_optionals2.zig",
|
||||
.output = "Elephant A. Elephant B. Elephant C.",
|
||||
.hint = "Elephants!",
|
||||
},
|
||||
// super-simple struct method
|
||||
// use struct method for elephant tails
|
||||
// quiz: add elephant trunk (like tail)!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue