diff options
| author | Alee <Alee14498@gmail.com> | 2019-01-29 17:28:08 -0500 |
|---|---|---|
| committer | Alee <Alee14498@gmail.com> | 2019-01-29 17:28:08 -0500 |
| commit | db61f21e6baaa605876784749214c8754e97fdd4 (patch) | |
| tree | adcc6a8116b3a42f92dfee8f64b3da6997f1dd8a | |
| parent | beb447db2ffe03728d5ded11768e5f7fd5a2dc75 (diff) | |
| download | Project-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.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
