In a line like this:
const char *some_file = load_file("some_file").c_str();
load_file() std::string, .c_str() .
, , .c_str(), - . "" ( ), .
"" , load_file(), , .
.
.
String , std::string, ++ C. std::string, ++.
.c_str() C ( printf()).
, :
std::string some_file = load_file("some_file");
std::string another_file = load_file("another_file");
printf("%s\n", some_file.c_str());
printf("%s\n", another_file.c_str());
:
printf("%s\n", load_file("some_file").c_str());
printf("%s\n", load_file("another_file").c_str());
, , , (.. , load_file(), std::string), printf() , .c_str(), , printf() .