Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- // Variable declarations
- string inFileName;
- string outFileName;
- cout << "Press ENTER to continue..." << endl;
- cin.get();
- // Prompts user to enter input file.
- cout << "Enter the input filename: ";
- getline(cin, inFileName);
- // Prompts user to enter output file.
- cout << "Enter the output filename: ";
- getline(cin, outFileName);
- // Print the user entered filenames to console.
- cout << "The input filename that you selected is: " << inFileName << endl;
- cout << "The output filename that you selected is: " << outFileName << endl;
- return 0;
- } // end main function
Add Comment
Please, Sign In to add comment