#include <iostream>
#include <string>

int main()
{
    char MyCharArray[] = "Hello, Cruel\0World!";
    std::string MyString (MyCharArray, sizeof(MyCharArray)-1);
    std::cout << MyString << std::endl;
    std::cout << "Hello, Cruel" << std::ends << "World!" << std::endl;
}