Jul 03
How do I cast from std:string to char*?
We can’t do that. The only thing we can get from an std::string is a const char*, which means that we can’t modify it. You get this by calling string::c_str().
How do I cast from std:string to char*?
We can’t do that. The only thing we can get from an std::string is a const char*, which means that we can’t modify it. You get this by calling string::c_str().