char* p = "Harry"; string name(p);
string dir = . . .; char* p = tempnam(dir.c_str(), NULL); string file_name(p);