From 539b4c108e8eced7fef3324a9daa2ef0a538477b Mon Sep 17 00:00:00 2001 From: SanJacobs Date: Sat, 16 Apr 2022 01:41:13 +0200 Subject: Wrote function to input time and date --- src/main.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 3c12dae..a952bbe 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,6 +58,7 @@ int main(int argc, char* argv[]) moment erronious_splitpoint{0, 10, 27, 11, 2010}; std::cout << timeprint(timesplit(second_half, erronious_splitpoint)); + std::cout << "\n\n --- TIME MATH TEST ---\n\n"; moment testtime{30, 8, 25, 2, 2012}; @@ -89,8 +90,22 @@ int main(int argc, char* argv[]) std::cout << "\nRewinding 10 days...\n"; wind(testtime, 0, 0, -10); std::cout << "Testtime: " << timeprint(testtime) << std::endl; + + + std::cout << "\n\n --- TIME INPUT TEST ---\n\n"; + + moment inputmoment = timeinput(); + std::cout << "Time reveived: " << timeprint(inputmoment) << std::endl; + moment inputmoment2 = timeinput(2012, 11, 26); + std::cout << "Time reveived: " << timeprint(inputmoment2) << std::endl; } } + std::cout << "satscalc (C++ Edition)\n"; + std::cout << "Copyright 2022 Sander J. Skjegstad.\n"; + std::cout << "This is free software with ABSOLUTELY NO WARRENTY.\n"; + std::cout << "It does NOT give financial advice.\n\n"; + + std::cout << "-----\nStep 1: Adding the days\n\n"; return 0; } -- cgit v1.2.1