Re: [OFF] Convert int to ustring




#include <sstream>

int num = 1000;
Glib::ustring str;
std::stringstream strstr;
strstr << num;
strstr >> str;
Now str contains a string "1000"

Jupercio Juliano schrieb:

    Hi all.
Sorry for the off and the newbie question, but I need to know how to convert an int to ustring.

    Thanks for any help.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]