Once and for all, as a reminder for myself: How to convert an integer into a string in C++ (Visual C++ 2005 to be more precise):
char stnum[10];
sprintf_s(stnum,"%d",123); //stnum = "123"
If someone stumbles upon this page incidentally and knows a better way: please leave a comment.
Friday, December 7, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment