From 0fadb9c0fb828ddba62fcac8e91b6711448e727e Mon Sep 17 00:00:00 2001 From: Sameer <142401625+sameer6pre@users.noreply.github.com> Date: Wed, 23 Jul 2025 16:12:38 +0530 Subject: [PATCH] Update Lab_17/Education.cpp in branch Precogs-fix-m9qukxrm --- Lab_17/Education.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lab_17/Education.cpp b/Lab_17/Education.cpp index 1f692b3..cc90fc4 100644 --- a/Lab_17/Education.cpp +++ b/Lab_17/Education.cpp @@ -171,7 +171,10 @@ int main() { // F_First_Program_Menu(); - system("pause"); + // Use a safer alternative to pause the program + std::cout << "Press Enter to continue..."; + std::cin.ignore(std::numeric_limits::max(), '\n'); + return 0; } void F_First_Program_Menu() {