fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main() {
  5. std::string fileName;
  6. std::cout << "=============================================================\n"
  7. << "| Welcome to the Automatic Maze Path Finder! |\n"
  8. << "=============================================================\n"
  9. << "\nEnter the name of the Maze configuration file: ";
  10. std::getline(std::cin, fileName);
  11. std::cout << std::endl <<"fileName contains " << fileName << std::endl;
  12. }
Success #stdin #stdout 0s 3416KB
stdin
myfile.conf
stdout
=============================================================
|        Welcome to the Automatic Maze Path Finder!         |
=============================================================

Enter the name of the Maze configuration file: 
fileName contains myfile.conf