//Alpha Kaiser Operating System or KOS 0.2 #include #include #include #include "calculator.h" #include "KOSFunctions.h" using namespace std; /*TODO: add back command to all menus, add saveble notes, add support for commands whit big or small letters, fix rand with 0, fix rand crash by using not integers */ //DATE: 27.11.2019 [DD.MM:YYYY] int main() { printString("starting..."); printString("Started Successfully"); printString("Type help for a list of commands."); bool shutdown = false; do { printStringInstruction("[MAIN]waiting for input..."); cin >> input; if (input == "shutdown") { printString("Shutting down..."); shutdown = true; } if (input == "help") { helpCommand(); } if (input == "calculator") { calculator(); } if (input == "rand") { printStringInstruction("biggest possible number? 0 if it doesn't matter. Point numbers are currently not supported."); //backToMain(); double inputrand; cin >> inputrand; int max = 1 + inputrand; srand(time(0)); cout << endl << 0 + (rand() % max) << endl; } } while (shutdown == false); return 0; }