aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.cpp6
1 files 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