C++中的numeric头文件中提供了以下类型转换函数:
std::stod:将字符串转换为double类型std::stof:将字符串转换为float类型std::stoi:将字符串转换为int类型std::stol:将字符串转换为long类型std::stoll:将字符串转换为long long类型std::stoul:将字符串转换为unsigned long类型std::stoull:将字符串转换为unsigned long long类型std::to_string:将数值类型转换为字符串类型这些函数可以方便地进行不同类型之间的转换,例如将字符串表示的数值转换为相应的数值类型,或将数值类型转换为字符串类型。


