Possible Duplicate:
Convert std::string to const char* or char*
is there any to get the string back from the stl map and into a char array??
multimap<string, string> testcase;
testcase.insert(pair<string,string>("DB","something"));
for( i=testcase.begin(); i!=testcase.end(); ++i){
char cate[20] =(*i).first;
my code looks something like this... hw can i save (*i).first(or second for that matter) into a character array?