#include <iostream>
#include <sstream>
// Include the std::put_money and other utilities
#include <iomanip>

int main(int argc, char **argv)
{
    // Value in cents!
    const int basepay = 10000;
    std::stringstream ss;

    // Sets the local configuration
    ss.imbue(std::locale(""));
    ss << std::showbase << std::put_money(basepay);

    std::cout << std::locale("").name() << ": " << ss.str() << '\n';

    return 0;
}