Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 19 fstream CityFile, FeatFile, ResFile;
- 20 string str;
- 21 if (argc > 1){
- 22
- 23 while(CityFile >> str){
- 24 }
- 25 }
- 26
- 27 for (int i=0; i < argc; i++)
- 28
- 29 if (argv[i]=="-f"){
- 30 CityFile == argv[i+1];
- 31 }
- 32
- 33 CityFile.open("cities.txt");
- 34 ResFile.open("resturants.txt");
- 35 FeatFile.open("features.txt");
- 36
- 37 while (CityFile >> str){
- 38 cout << str << endl;
- 39 }
- 40 }
- 41 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement