/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #if defined(interp) && defined(makecint) #pragma include "test.dll" #else #include "maptest.h" #endif namespace std {} using namespace std; #include int main() { map mp; string a("a"); string b("b"); mp[a] = b; map::iterator i = mp.begin(); string c = (*i).second; const char *res = c.c_str(); printf("the result would be b and is : %s\n",res); return 0; }