Formatting strings

Is there a simple way to format a numeric string such as "100000" to a string type like "1,000.00" in C++?

I appreciate any example.
If you are going to do it for this stand-alone formatting, it is ok but if your final objective is not only those but also involve time separators, currency separators etc etc look at http://www.cplusplus.com/reference/std/locale/
Topic archived. No new replies allowed.