diff options
author | San Jacobs | 2022-08-08 18:40:00 +0200 |
---|---|---|
committer | San Jacobs | 2022-08-08 18:40:00 +0200 |
commit | b604893e748485d6c9aa4eeb6d40ba432ed052c6 (patch) | |
tree | d01da670e55f65dd7fab7cc1e2773300d259b9ef | |
parent | 0b8b2c423e0ae4da2343b06df3f6491757ab3342 (diff) | |
download | satscalc-b604893e748485d6c9aa4eeb6d40ba432ed052c6.tar.gz satscalc-b604893e748485d6c9aa4eeb6d40ba432ed052c6.tar.bz2 satscalc-b604893e748485d6c9aa4eeb6d40ba432ed052c6.zip |
Stopped program from closing after run
-rwxr-xr-x | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |