Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <cstdlib>
- int main(){
- std::string *p = (std::string *)malloc(sizeof(std::string));
- *p = "asdf";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement