Enviado em 12/03/2015 - 16:34h
Estou tentando rodas esse código:#include <iostream>
#include <iomanip>
int main()
{
long double mon = 12345; // or std::string mon = "123.45";
std::cout.imbue(std::locale("en_US.utf8"));
std::cout << std::showbase
<< "en_US: " << std::put_money(mon) << " or " << std::put_money(mon, true) << '\n';
std::cout.imbue(std::locale("ru_RU.utf8"));
std::cout << "ru_RU: " << std::put_money(mon) << " or " << std::put_money(mon, true) << '\n';
std::cout.imbue(std::locale("ja_JP.utf8"));
std::cout << "ja_JP: " << std::put_money(mon) << " or " << std::put_money(mon, true) << '\n';
}
main.cpp: In function 'int main()':
main.cpp:9:31: error: 'put_money' is not a member of 'std'
<< "en_US: " << std::put_money(mon) << " or " << std::put_money(mon, true) << '\n';
^
main.cpp:9:64: error: 'put_money' is not a member of 'std'
<< "en_US: " << std::put_money(mon) << " or " << std::put_money(mon, true) << '\n';
^
main.cpp:11:31: error: 'put_money' is not a member of 'std'
std::cout << "ru_RU: " << std::put_money(mon) << " or " << std::put_money(mon, true) << '\n';
^
main.cpp:11:64: error: 'put_money' is not a member of 'std'
std::cout << "ru_RU: " << std::put_money(mon) << " or " << std::put_money(mon, true) << '\n';
^
main.cpp:13:31: error: 'put_money' is not a member of 'std'
std::cout << "ja_JP: " << std::put_money(mon) << " or " << std::put_money(mon, true) << '\n';
^
main.cpp:13:64: error: 'put_money' is not a member of 'std'
std::cout << "ja_JP: " << std::put_money(mon) << " or " << std::put_money(mon, true) << '\n';
^
Comparação entre os escalonadores BFQ e MQ-Deadline (acesso a disco) no Arch e Debian
Conciliando o uso da ZRAM e SWAP em disco na sua máquina
Servidor de Backup com Ubuntu Server 24.04 LTS, RAID e Duplicati (Dell PowerEdge T420)
Visualizar câmeras IP ONVIF no Linux sem necessidade de instalar aplicativos
Como instalar o Telegram Desktop no Ubuntu 24.04
Overclocking Permanente para Drastic no Miyoo Mini Plus
Problemas de chaves (/usr/share/keyrings) no Debian
Converter os repositórios Debian para o novo formato com as chaves