Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<string>
- #include<algorithm>
- #include<vector>
- #include<fstream>
- #include "Route.h"
- using namespace std;
- int main(int argc, char** argv) {
- bool scanner_on = true;
- string directory_of_routes = argv[1];
- string user_route;
- string user_overtime_piece;
- cout << "Enter Route number" << endl;
- getline(cin, user_route);
- vector<string> filled_route_copy;
- Route x;
- Route piece_of_route;
- string path_to_specific_route = directory_of_routes + "\\" + user_route;
- string path_to_specific_piece = directory_of_routes + "\\" + user_overtime_piece;
- x.populate(path_to_specific_route);
- do {
- cout << "What would you like to do? You can say, \"Sort packages\", \"Estimate time\", \n
- "\"add a piece to my current route\", or \"Turn off scanner\"." << endl;
- string option_1;
- getline(cin, option_1);
- if (option_1 == "Sort packages") {
- cout << "Input your packges." << endl;
- cout << "Input \"stop\" to stop." << endl;
- x.sort_packages();
- }
- if (option_1 == "Estimate time") {
- x.time_calculation();
- }
- if (option_1 == "add a piece to my current route") {
- piece_of_route.populate(path_to_specific_piece);
- x = x + piece_of_route;
- */}
- if (option_1 == "Turn off Scanner")
- scanner_on = false;
- } while(scanner_on)
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement