Initiated Zig Project for 2023 day02

This commit is contained in:
nikurasu 2023-12-11 12:29:40 +01:00
parent f1906f48c7
commit 06ad9eefb3
Signed by: Nikurasu
GPG Key ID: 9E7F14C03EF1F271
3 changed files with 16 additions and 0 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@
2022/day05/obj
2023/day01/bin/Debug/net7.0
2023/day01/obj
zig-cache
zig-out

9
2023/day02/build.zig Normal file
View File

@ -0,0 +1,9 @@
const std = @import("std");
pub fn build(b: *std.Build) void {
const exe = b.addExecutable(.{
.name = "main",
.root_source_file = .{ .path = "main.zig" },
});
b.installArtifact(exe);
}

5
2023/day02/main.zig Normal file
View File

@ -0,0 +1,5 @@
const std = @import("std");
pub fn main() !void {
std.debug.print("Hello World!", .{});
}