language: C++11 (gcc-4.7.2)
date: 185 days 16 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
#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;
}