void AddLanOrRes2Set(const string& strValue, vector<string>& techChildVector)
{
if (!strValue.empty())
{
char tmp[20] = {0} ;
int nCur = 0 ;
for (int nPos = 0; nPos <= strValue.size(); ++nPos)
{
if (';' != strValue[nPos] && nPos != strValue.size())
{
tmp[nCur++] = strValue[nPos] ;
}
else
{
tmp[nCur] = 0 ;
techChildVector.push_back(tmp) ;
nCur = 0 ;
}
}
}
}
void main()
{
string pp("2;3;4") ;
vector<string> veString ;
AddLanOrRes2Set(pp, veString) ;
int i = 0 ;
}
{
if (!strValue.empty())
{
char tmp[20] = {0} ;
int nCur = 0 ;
for (int nPos = 0; nPos <= strValue.size(); ++nPos)
{
if (';' != strValue[nPos] && nPos != strValue.size())
{
tmp[nCur++] = strValue[nPos] ;
}
else
{
tmp[nCur] = 0 ;
techChildVector.push_back(tmp) ;
nCur = 0 ;
}
}
}
}
void main()
{
string pp("2;3;4") ;
vector<string> veString ;
AddLanOrRes2Set(pp, veString) ;
int i = 0 ;
}