会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Rufa
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
C/C++
C++ int与string相互转换
摘要:int 转 string#include "stdafx.h"#include<iostream>#include <string>#include <sstream>using namespace std;int main(){ //将int转成string int n = 123456; string s; stringstream ss; ss << n; ss >> s; cout<<s<<endl; system("pause"); return 0;}stri
阅读全文
posted @
2013-04-28 09:12
Rufa
阅读(171)
评论(0)
推荐(0)
公告