[ create a new paste ] login | about

Link: http://codepad.org/aPMw3UVs    [ raw code | output | fork ]

mickey24 - C++, pasted on Dec 23:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
#include <string>
#include <sstream>
using namespace std;

int main(int argc, char const* argv[]) {
  int i = 10; 
  string str;
  stringstream ss; 

  ss << i;
  ss >> str;
  cout << str << endl;

  return 0;
}


Output:
1
10


Create a new paste based on this one


Comments: