摘要:
int转stringint n = 0;std::stringstream ss;std::string str;ss<<n;ss>>str;string转intstd::string str = "123";int n = atoi(str.c_str());#include"stdafx.h"#include<string>#include<sstream>usingnamespacestd;voidmain(){//int转stringstringstreamss;intn=123;stringstr 阅读全文