Something
public text v1 · immutable#include <iostream>
#include <string>
#include <cstring>
int main()
{
char *namex = new char;
std::string name = "Keith";
strcpy(namex, name.c_str());
std::cout << namex << std::endl;
}#include <iostream>
#include <string>
#include <cstring>
int main()
{
char *namex = new char;
std::string name = "Keith";
strcpy(namex, name.c_str());
std::cout << namex << std::endl;
}