fork(1) download
  1. // Example program
  2. #include <iostream>
  3. #include <string>
  4.  
  5. int main()
  6. {
  7. int test = 10; // -> \n en ascii
  8.  
  9. std::string dentro_de_comillas = "dentro_de_comillas";
  10. dentro_de_comillas += (char)test;
  11.  
  12. std::cout << dentro_de_comillas;
  13. std::string name;
  14. std::cout << "What is your name? " << (char)test;
  15. std::cout << "Hello, " << name << "!\n";
  16.  
  17. std::string dentro_de_comillas_1 = "\\n";
  18. std::cout << dentro_de_comillas;
  19. std::cout << "What is your name? " << (char)test;
  20. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
dentro_de_comillas
What is your name? 
Hello, !
dentro_de_comillas
What is your name?