fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main() {
  5. std::string input;
  6. std::cout << "Press ENTER to 'click the button': ";
  7. std::getline(std::cin, input);
  8. std::cout << "hi" << std::endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 5332KB
stdin
Standard input is empty
stdout
Press ENTER to 'click the button': hi