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; }
1
13.3