Guest User

Untitled

a guest
Dec 11th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. // Variable declarations
  8. string inFileName;
  9. string outFileName;
  10.  
  11. // Prompts user to enter input file.
  12. cout << "Enter the input filename: ";
  13. getline(cin, inFileName);
  14.  
  15. // Prompts user to enter output file.
  16. cout << "Enter the output filename: ";
  17. getline(cin, outFileName);
  18. cout << endl;
  19.  
  20. // Print the user entered filenames to console.
  21. cout << "The input filename that you selected is: " << inFileName << endl;
  22. cout << "The output filename that you selected is: " << outFileName << endl;
  23.  
  24. return 0;
  25.  
  26. } // end main function
Add Comment
Please, Sign In to add comment