// example
char sczName[] = {"Jakes"};
std::string strName = std::string(sczName);
/* SYNTAX
#include <string>
std::string(<char-to-convert>)
*/
std::string str = "string";
const char *cstr = str.c_str();
std::string str = "string";
const char *cstr = str.c_str();
std::cout << std::string(1, c) << std::endl;
char *cStr = "C++";
std::string Str = std::string(cStr);
std::string str = "string";
const char *cstr = str.c_str();
std::string str = "string";
const char *cstr = str.c_str();
std::string str = "string";
const char *cstr = str.c_str();
std::string str = "string";
const char *cstr = str.c_str();
std::string str = "string";
const char *cstr = str.c_str();