aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSanJacobs2022-07-09 15:01:02 +0200
committerSanJacobs2022-07-09 15:01:02 +0200
commit55adec80ffefd9a1090209cfe6298ff850dedfc4 (patch)
tree0fd4c1c0452a3d68fba8200f3e4b1c7b7db62faf /src/main.cpp
parenta522e50d21e366e489d19fbd174d65bdb3d19988 (diff)
downloadsatscalc-55adec80ffefd9a1090209cfe6298ff850dedfc4.tar.gz
satscalc-55adec80ffefd9a1090209cfe6298ff850dedfc4.tar.bz2
satscalc-55adec80ffefd9a1090209cfe6298ff850dedfc4.zip
Reversed timesplit and added >= and <= to moments
Diffstat (limited to 'src/main.cpp')
-rwxr-xr-xsrc/main.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 21b25cc..f1dd13f 100755
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -19,7 +19,6 @@ along with this program. If not, see https://www.gnu.org/licenses/
// TODO: Write function/method/constructor that slices a workday up into the differently priced segments
// TODO: Make the system that determines the price of each of those slices of time
// TODO: Add ruleset selector (That only allows you to pick the advert ruleset at first)
-// TODO: Make cool logo
#include <iostream>
#include "time.h"
@@ -52,17 +51,17 @@ int main(int argc, char* argv[])
std::cout << "\nSplitting workday into workday and second_half...\n";
moment splitpoint{0, 12, 27, 11, 2010};
- timeblock second_half{timesplit(workday, splitpoint)};
+ timeblock first_half{timesplit(workday, splitpoint)};
std::cout << "\nSplitpoint: " << timeprint(splitpoint) << std::endl;
+ std::cout << "\nfirst_half:\n";
+ std::cout << timeprint(first_half) << std::endl;
std::cout << "\nWorkday:\n";
std::cout << timeprint(workday) << std::endl;
- std::cout << "\nSecond_half:\n";
- std::cout << timeprint(second_half) << std::endl;
std::cout << "\nSplitting second_half at erronious point...\n";
- moment erronious_splitpoint{0, 10, 27, 11, 2010};
- std::cout << timeprint(timesplit(second_half, erronious_splitpoint)) << "\n";
+ moment erronious_splitpoint{0, 14, 27, 11, 2010};
+ std::cout << timeprint(timesplit(first_half, erronious_splitpoint)) << "\n";