int CommString::str_to_int(const std::string &str)
{
int ivalue = 0;
sscanf(str.c_str(), "%d", &ivalue);
return ivalue;
}
转载于:https://blog.51cto.com/wenxuehui/1954478
int CommString::str_to_int(const std::string &str)
{
int ivalue = 0;
sscanf(str.c_str(), "%d", &ivalue);
return ivalue;
}
转载于:https://blog.51cto.com/wenxuehui/1954478