From 1be1d854a8f690c25a577bef1feb1e9926caf2c7 Mon Sep 17 00:00:00 2001 From: Sean Aubin Date: Tue, 28 Feb 2023 20:54:42 -0500 Subject: first draft of memory allocation exercise --- build.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 36668b4..4617515 100644 --- a/build.zig +++ b/build.zig @@ -392,6 +392,10 @@ const exercises = [_]Exercise{ .main_file = "076_sentinels.zig", .output = "Array:123056. Many-item pointer:123.", }, + .{ + .main_file = "076a_memory_allocation.zig", + .output = "Running Average: 0.30 0.25 0.20 0.18 0.22", + }, .{ .main_file = "077_sentinels2.zig", .output = "Weird Data!", -- cgit v1.2.3 From f08af9b24280090c599e30a3ee90b4fbfbcb3aaf Mon Sep 17 00:00:00 2001 From: Sean Aubin Date: Wed, 8 Mar 2023 12:51:07 -0500 Subject: move memory allocation example to 095 --- build.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 4617515..4f9f046 100644 --- a/build.zig +++ b/build.zig @@ -392,10 +392,6 @@ const exercises = [_]Exercise{ .main_file = "076_sentinels.zig", .output = "Array:123056. Many-item pointer:123.", }, - .{ - .main_file = "076a_memory_allocation.zig", - .output = "Running Average: 0.30 0.25 0.20 0.18 0.22", - }, .{ .main_file = "077_sentinels2.zig", .output = "Weird Data!", @@ -487,6 +483,10 @@ const exercises = [_]Exercise{ .main_file = "095_for_loops.zig", .output = "1 2 4 7 8 11 13 14 16 17 19", }, + .{ + .main_file = "096_memory_allocation.zig", + .output = "Running Average: 0.30 0.25 0.20 0.18 0.22", + }, .{ .main_file = "999_the_end.zig", .output = "\nThis is the end for now!\nWe hope you had fun and were able to learn a lot, so visit us again when the next exercises are available.", -- cgit v1.2.3