From 840e4c4933981f0062cc3ca88dd984243067bc00 Mon Sep 17 00:00:00 2001 From: Sameer <142401625+sameer6pre@users.noreply.github.com> Date: Thu, 24 Jul 2025 09:58:58 +0530 Subject: [PATCH] Update Lab_16/Source.cpp in branch Precogs-fix-uupn4q68 --- Lab_16/Source.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Lab_16/Source.cpp b/Lab_16/Source.cpp index 8f98917..91d50c2 100644 --- a/Lab_16/Source.cpp +++ b/Lab_16/Source.cpp @@ -274,7 +274,8 @@ class Master : public Account, public Admin { for (int i = 0; i < 1000; i++) { - system("cls"); + // FIX: Avoid using system("cls") and use a safer alternative + cout << "\033[2J\033[1;1H"; // ANSI escape codes to clear the console cout << "\t U P D A T E D E T A I L S\n"; cout << "=========================================\n"; cout << " Choose detail you want to update\n"; @@ -325,8 +326,8 @@ class Master : public Account, public Admin Sleep(0700); Sleep(0700); } // switch - } - } // for loop + } // for loop + } // update }; int main()