(c, c++) 'char * to string' and 'string to char *'
//string to char* string str = "hello"; char cstr[10]; strcpy(cstr,str.c_str()); // char * to string char cstr[] = "hello"; string str = cstr; //string(cstr)
The study blog from marearts.com
Computer Vision & Machine Learning Research Laboratory
//string to char* string str = "hello"; char cstr[10]; strcpy(cstr,str.c_str()); // char * to string char cstr[] = "hello"; string str = cstr; //string(cstr)