Advertisement
Guest User

Untitled

a guest
Sep 9th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  19         fstream CityFile, FeatFile, ResFile;
  2.  20         string str;
  3.  21         if (argc > 1){
  4.  22
  5.  23                 while(CityFile >> str){
  6.  24                 }
  7.  25         }
  8.  26
  9.  27         for (int i=0; i < argc; i++)
  10.  28
  11.  29                 if (argv[i]=="-f"){
  12.  30                         CityFile == argv[i+1];
  13.  31                 }
  14.  32
  15.  33         CityFile.open("cities.txt");
  16.  34         ResFile.open("resturants.txt");
  17.  35         FeatFile.open("features.txt");
  18.  36
  19.  37                 while (CityFile >> str){
  20.  38                         cout << str << endl;
  21.  39                 }
  22.  40         }
  23.  41 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement