2010. 6. 22. 01:14 devel/etc

c++ int to string

#include <iostream>
#include <sstream>
using namespace std;

 


int main(){

int i = 5;
std::string s;
std::stringstream out;
out << i;
s = out.str();
cout << s;


 return 0;
}

'devel > etc' 카테고리의 다른 글

64비트 멀티코어 OS 원리와 구조  (0) 2011.12.10
HTML STYLE COLOR  (0) 2011.09.08
Visual Studio 2005, 2008 에서 OPEN GL 사용하기  (0) 2010.05.16
Makefile 쉬운 예제  (1) 2009.10.17
윤드림훃의 주옥같은 글  (0) 2009.10.17
Posted by 쵸코케키

블로그 이미지
chocokeki
쵸코케키

공지사항

Yesterday
Today
Total

달력

 « |  » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

최근에 올라온 글

최근에 달린 댓글

글 보관함