Discussion in 'OT Technology' started by dinger, Mar 9, 2003.
Is there a way to convert an int to an STL string without using atoi()? Thanks.
umm.. can you use some ascii conversion function?
Why don't you want to use atoi?
I don't know anything about STL, but for straight C, you could also use sprintf....
int x = 100;
sprintf(string, "%d", x);
Your string will now be "100" (with a null terminator)
Check out a listing of all the STL String functions