摘要: 一、string类型转换int类型 ... std::string str; int i = std::stoi(str); ... 同样, 可以使用 stol(long), stof(float), stod(double) 等. 二、int类型转换string类型 int a = 520; fl 阅读全文
posted @ 2024-07-27 11:41 ImreW 阅读(1) 评论(0) 推荐(0) 编辑