29 Mar
2005
29 Mar
'05
9:56 a.m.
I'm having problems getting the same result in C++. This is the sample program:
{ for (int i=0;i
Therein lies your error: the contents of what[n].first and what[n].second are *not* null terminated strings, they represent an *iterator range*, if you want to get back a string then call the str() method: std:: cout << what.str(i) << std::endl; HTH, John.