fork(1) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. std::string toString(const std::string& input)
  5. {
  6. std::string output = "hello " + input;
  7. return output;
  8. }
  9.  
  10. int main() {
  11. std::cout << toString("Bob") << '\n';
  12. return 0;
  13. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
hello Bob