Guest User

Untitled

a guest
Dec 11th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 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. cout << "Press ENTER to continue..." << endl;
  12. cin.get();
  13.  
  14. // Prompts user to enter input file.
  15. cout << "Enter the input filename: ";
  16. getline(cin, inFileName);
  17.  
  18. // Prompts user to enter output file.
  19. cout << "Enter the output filename: ";
  20. getline(cin, outFileName);
  21.  
  22. // Print the user entered filenames to console.
  23. cout << "The input filename that you selected is: " << inFileName << endl;
  24. cout << "The output filename that you selected is: " << outFileName << endl;
  25.  
  26. return 0;
  27.  
  28. } // end main function
Add Comment
Please, Sign In to add comment