fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. string criaString() {
  6. return "Olá mundo!";
  7. }
  8.  
  9. int main(){
  10. string retorno = criaString(); //esta variável nem é necessária
  11. std::cout << retorno;
  12. }
  13.  
  14. //https://pt.stackoverflow.com/q/228872/101
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
Olá mundo!