第一种是to_string函数,这是C++11新增的,使用非常方便,简单查了下:C++11标准增加了全局函数std::to_string,以及std::stoi/stol/stoll等等函数(这几个就是string转int,long,以及long long啦~)

NoSuchKey

猜你喜欢

转载自blog.csdn.net/wsw136474/article/details/78906063