aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee <Alee14498@gmail.com>2019-01-29 17:28:08 -0500
committerAlee <Alee14498@gmail.com>2019-01-29 17:28:08 -0500
commitdb61f21e6baaa605876784749214c8754e97fdd4 (patch)
treeadcc6a8116b3a42f92dfee8f64b3da6997f1dd8a
parentbeb447db2ffe03728d5ded11768e5f7fd5a2dc75 (diff)
downloadProject-Xeon-db61f21e6baaa605876784749214c8754e97fdd4.tar.gz
Project-Xeon-db61f21e6baaa605876784749214c8754e97fdd4.tar.bz2
Project-Xeon-db61f21e6baaa605876784749214c8754e97fdd4.zip
We are almost making this not for just Windows :D
-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