Просмотр исходного кода

move memory allocation example to 095

Sean Aubin 2 лет назад
Родитель
Сommit
f08af9b242
2 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      build.zig
  2. 0 0
      exercises/095_memory_allocation.zig

+ 4 - 4
build.zig

@@ -393,10 +393,6 @@ const exercises = [_]Exercise{
         .output = "Array:123056. Many-item pointer:123.",
         .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",
         .main_file = "077_sentinels2.zig",
         .output = "Weird Data!",
         .output = "Weird Data!",
     },
     },
@@ -488,6 +484,10 @@ const exercises = [_]Exercise{
         .output = "1 2 4 7 8 11 13 14 16 17 19",
         .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",
         .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.",
         .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.",
     },
     },

+ 0 - 0
exercises/076a_memory_allocation.zig → exercises/095_memory_allocation.zig