int CommString::str_to_int(const std::string &str)
{
int ivalue = 0;
sscanf(str.c_str(), "%d", &ivalue);
return ivalue;
}
时间: 2024-10-05 23:39:15
int CommString::str_to_int(const std::string &str)
{
int ivalue = 0;
sscanf(str.c_str(), "%d", &ivalue);
return ivalue;
}