From 5257941f40554da3f8df074443a4c087dcff7004 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Sat, 10 Dec 2022 23:02:40 +0000 Subject: 25-60 complete --- exercises/038_structs2.zig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'exercises/038_structs2.zig') diff --git a/exercises/038_structs2.zig b/exercises/038_structs2.zig index 4f2ce48..82cfa4a 100644 --- a/exercises/038_structs2.zig +++ b/exercises/038_structs2.zig @@ -42,6 +42,12 @@ pub fn main() void { // // Feel free to run this program without adding Zump. What does // it do and why? + chars[1] = Character{ + .class = Class.bard, + .gold = 10, + .health = 100, + .experience = 20, + }; // Printing all RPG characters in a loop: for (chars) |c, num| { -- cgit v1.2.3-ZIG