mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 21:24:53 +08:00
delete system info output in zig codes
This commit is contained in:
@ -141,10 +141,6 @@ fn factorialRecur(n: i32) i32 {
|
||||
|
||||
// Driver Code
|
||||
pub fn main() !void {
|
||||
// 查看本地CPU架构和操作系统信息
|
||||
var native_target_info = try std.zig.system.NativeTargetInfo.detect(std.zig.CrossTarget{});
|
||||
std.debug.print("Native Info: CPU Arch = {}, OS = {}\n", .{native_target_info.target.cpu.arch, native_target_info.target.os.tag});
|
||||
|
||||
// 可以修改 n 运行,体会一下各种复杂度的操作数量变化趋势
|
||||
const n: i32 = 8;
|
||||
std.debug.print("输入数据大小 n = {}\n", .{n});
|
||||
|
||||
Reference in New Issue
Block a user