From 5e89ac588465ac17e65ee3719a1f62f64c99c5a0 Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Fri, 27 May 2022 08:17:57 -0400 Subject: [PATCH] Fix typos, add `EXIT_WHEN_DONE` variable, change formatting --- ZSharp/ZS.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/ZSharp/ZS.h b/ZSharp/ZS.h index 7c80341..6e62a7c 100644 --- a/ZSharp/ZS.h +++ b/ZSharp/ZS.h @@ -4,13 +4,17 @@ using namespace std; std::string ZSContents = R"( //////////////////////////////////////////////////////////////////////////////// -// ↓ DEFAULT BUILTIN ↓ +// BUILTIN +//////////////////////////////////////////////////////////////////////////////// // Default variables, can be overwritten // if re-initialized or changed float PI = 3.14159265358979323846264338 float EulersNumber = 2.71828183 +// This variable tells the interpreter if it should close the console window when the program has finished running. +bool EXIT_WHEN_DONE = true + // Trigonometric function Sin func Sin(input) { @@ -148,8 +152,10 @@ func GetKey(keyName) //} -////////////////////////////////////////////////////// -// ↓ MADE BY KAPUTCHINO ↓ + +//////////////////////////// +// ↓ MADE BY KAPUTCHINO ↓ // +//////////////////////////// // Return the number of combinations func Comb(n, r) @@ -191,17 +197,17 @@ func Perm(n, r) { if n < 0 { - ZS.System.PrintLine("n muss be superior or equal to 0") + ZS.System.PrintLine("n must be superior or equal to 0") return -1 } if r < 0 { - ZS.System.PrintLine("r muss be superior or equal to 0") + ZS.System.PrintLine("r must be superior or equal to 0") return -1 } if r > n { - ZS.System.PrintLine("r muss be inferor or equal to n") + ZS.System.PrintLine("r must be inferior or equal to n") return -1 } return Fac(n) / Fac(n - r)