hamid14 @ Sun Nov 21, 2010 5:10 pm wrote:
Any examples? I cant seem to find any good ones online >.>
A useful skill in programming is to be able to build solutions from documentation of APIs and the such. For example, the declaration for std::ostringstream can be added into your program by including <sstream>. std::ostringstream is a typedef for a specialization of std::basic_ostringstream (which has a member function called str()). So you can create an ostringstream object, use an inserter on it with the number to output and then get a string back with the output.