카타 8급 Returning Strings

1 C++[ | ]

std::string greet(const std::string& n){
  return "Hello, "+n+" how are you doing today?";
}

2 PHP[ | ]

function greet($name) {
  return "Hello, $name how are you doing today?";
}
function greet($name) {
  return sprintf("Hello, %s how are you doing today?", $name);
}
function greet($name) {
  return 'Hello, ' . $name . ' how are you doing today?';
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}