摘要: 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 阅读全文
posted @ 2013-05-29 10:59 瓦楞球 阅读(264) 评论(0) 推荐(0) 编辑