摘要: 1.c++中string到int的转换1) 在C标准库里面,使用atoi:#include #include std::string text = "152";int number = std::atoi( text.c_str() );if (errno == ERANGE) //可能是std::... 阅读全文