From b604893e748485d6c9aa4eeb6d40ba432ed052c6 Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Mon, 8 Aug 2022 18:40:00 +0200 Subject: Stopped program from closing after run --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 830e737..41577d9 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -242,7 +242,8 @@ done: std::cout << "\nSum: " << total_sum; std::cout << "\nTotal: " << total_sum*social_costs << std::endl; - + std::cin.get(); + std::cin.ignore(); return 0; } -- cgit v1.2.1