From 883f15a536fc58b2f8bcf536b1a54f9108142939 Mon Sep 17 00:00:00 2001 From: Karutoh Date: Thu, 20 Nov 2025 16:01:49 -0800 Subject: [PATCH] Update Primitive Data Types --- Primitive-Data-Types.md | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/Primitive-Data-Types.md b/Primitive-Data-Types.md index 0a0e421..d0b83ed 100644 --- a/Primitive-Data-Types.md +++ b/Primitive-Data-Types.md @@ -72,18 +72,29 @@ ```cpp int main() { - ehs::Initialize("Test", "Test", {0, 0, 0}); + ehs::Initialize("Test", "Test", {0, 0, 0}); - ehs::UInt_64 a = EHS_SINT_64_MAX; - if (a != EHS_SINT_64_MAX) - { - ehs::Uninitialize(); + ehs::Console::Write_8("Enter a number: "); + + ehs::Str_8 strValue = ehs::Console::Read_8(); + if (!strValue.IsNum()) + { + return 1; + } - return 1; - } - - ehs::Uninitialize(); + ehs::UInt_64 value = strValue.ToDecimal(); + while (value != EHS_SINT_64_MAX - 1) + { + ehs::Console::Write_8("Iteration # " + ehs::Str_8::FromNum(value)); - return 0; + if (value != EHS_SINT_64_MAX) + ++value; + } + + ehs::Console::Write_8("Done!"); + + ehs::Uninitialize(); + + return 0; } ``` \ No newline at end of file