fork(1) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. void ReadLine(string &str);
  7.  
  8. int main()
  9. {
  10. string str;
  11. ReadLine(str);
  12. cout << str << endl;
  13. return 0;
  14. }
  15.  
  16. void ReadLine(string &str)
  17. {
  18. cin >> str;
  19. }
  20.  
Success #stdin #stdout 0s 3432KB
stdin
hello
stdout
hello