Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main(void)
- {
- std::string* s1 = new std::string("HolaMundo");
- const char* contents = s1->data();
- delete s1;
- s1 = new std::string("ChauMundo");
- std::cout << contents << std::endl;
- return EXIT_SUCCESS;
- }
Add Comment
Please, Sign In to add comment