fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main () {
  5.  
  6. std::cout <<"enter name:" ;
  7. std::string name ;
  8. std:: cin >> name;
  9. std:: cout <<"hello " << name << std::endl;
  10. return 0;
  11.  
  12. }
  13.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
enter name:hello