Advertisement
pgiovanni

Untitled

Oct 14th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.36 KB | None | 0 0
  1. #include <iostream>
  2. #include<string>
  3. #include<algorithm>
  4. #include<vector>
  5. #include<fstream>
  6. #include "Route.h"
  7.  
  8.  
  9. using namespace std;
  10.  
  11.  
  12.  
  13. int main(int argc, char** argv) {
  14.    
  15.    
  16.     bool scanner_on = true;
  17.     string directory_of_routes = argv[1];
  18.     string user_route;
  19.     string user_overtime_piece;
  20.     cout << "Enter Route number" << endl;
  21.     getline(cin, user_route);
  22.     vector<string> filled_route_copy;
  23.    
  24.  
  25.  
  26.     Route x;
  27.     Route piece_of_route;
  28.  
  29.  
  30.  
  31.     string path_to_specific_route = directory_of_routes + "\\" + user_route;
  32.     string path_to_specific_piece = directory_of_routes + "\\" + user_overtime_piece;
  33.     x.populate(path_to_specific_route);
  34.  
  35.     do {
  36.         cout << "What would you like to do? You can say, \"Sort packages\", \"Estimate time\", \n
  37.         "\"add a piece to my current route\", or \"Turn off scanner\"." << endl;
  38.         string option_1;
  39.         getline(cin, option_1);
  40.  
  41.  
  42.  
  43.         if (option_1 == "Sort packages") {
  44.             cout << "Input your packges." << endl;
  45.             cout << "Input \"stop\" to stop." << endl;
  46.  
  47.             x.sort_packages();
  48.         }
  49.  
  50.         if (option_1 == "Estimate time") {
  51.  
  52.             x.time_calculation();
  53.  
  54.  
  55.         }
  56.         if (option_1 == "add a piece to my current route") {
  57.             piece_of_route.populate(path_to_specific_piece);
  58.            
  59.  
  60.             x = x + piece_of_route;
  61.         */}
  62.  
  63.        
  64.         if (option_1 == "Turn off Scanner")
  65.             scanner_on = false;
  66.  
  67.     } while(scanner_on)
  68.  
  69.     return 0;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement