1.
CStdString key ;
string::size_type pos = msg.rfind("\t") ;// 倒数第一个“\t”的位置。 类似的顺数第一个的位置用 find。
key = msg.substr(pos + 1) ;// 返回从pos+1到msg字符串结尾的子字符串传送给key。
2.
if (1 == strTemp[i].size())
{
strTemp[i].insert(0, 2, '0') ;
}
if (2 == strTemp[i].size())
{
strTemp[i].insert(0, 1, '0') ;
}