string string2binstring(string strSrc){if(strSrc.empty()){return \"\";}string strTemp = \"0x\";string strDest;//去掉最开始的0x字符int iNumber = strSrc.find(strTemp);if(iNumber != NO_FOUND){strSrc = strSrc.substr(2,strSrc.size()-2);}for(int i=0;i<strSrc.size();i++){strTemp += strSrc.at(i);if((i+1)%2 == 0){strDest += strTemp + \",\";strTemp = \"0x\";}}strDest = strDest.substr(0,strDest.size()-1);return strDest;
}