1 2 3 4 5 6 7 8
#include <string> #include <iostream> int main(int argc, char **argv) { std::string* s = new std::string("Hello"); delete s; return 0; }