fork(1) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main()
  5. {
  6. std::string MyString ("Hello, Cruel\0World!", 19);
  7. std::cout << MyString << std::endl;
  8. std::cout << "Hello, Cruel" << std::ends << "World!" << std::endl;
  9. }
Success #stdin #stdout 0s 3060KB
stdin
Standard input is empty
stdout
Hello, CruelWorld!
Hello, CruelWorld!