#include #include #include #include using namespace std; int main() { string s; char buf[10]; sprintf(buf, "%d", 5); s = buf; cout << s << endl; }