From db61f21e6baaa605876784749214c8754e97fdd4 Mon Sep 17 00:00:00 2001 From: Alee Date: Tue, 29 Jan 2019 17:28:08 -0500 Subject: We are almost making this not for just Windows :D --- main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 9413d9c..2168243 100644 --- a/main.cpp +++ b/main.cpp @@ -23,19 +23,19 @@ int main() std::cout << "Hello "<< username << "!" << std::endl; j["username"] = username; std::cout << "Press anything to continue!" << std::endl; - system("pause>nul"); + std::getchar(); system("cls"); std::cout << "Select a year that you will be born in..." << std::endl; std::cin >> year; j["year"] = year; std::cout << "The year is now " << year << "!" << std::endl; - system("pause>nul"); + std::getchar(); age = 0; age = age+1; year = year+1; std::cout << "You are now " << age << " and it's " << year << std::endl; - system("pause"); + std::getchar(); return 0; } \ No newline at end of file -- cgit v1.2.3