📅  最后修改于: 2022-03-11 14:44:51.661000             🧑  作者: Mango
#include
#include
template
std::string FormatWithCommas(T value)
{
std::stringstream ss;
ss.imbue(std::locale(""));
ss << std::fixed << value;
return ss.str();
}