[ create a new paste ] login | about

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

C++, pasted on Oct 12:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
float f = 13.3;
ostringstream stream;
stream << f;
string S = stream.str();
cout << S << endl;
return 0;
}


Output:
1
13.3


Create a new paste based on this one


Comments: