
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';
^
Gentoo binário em 2026: UEFI, LUKS, Btrfs e Systemd
Trabalhando Nativamente com Logs no Linux
Jogando Daikatana (Steam) com Patch 1.3 via Luxtorpeda no Linux
LazyDocker – Interface de Usuário em Tempo Real para o Docker
Por que sua empresa precisa de uma PKI (e como automatizar EMISSÕES de certificados via Web API)
Instalando NoMachine no Gentoo com Systemd (acesso Remoto em LAN)
Gentoo: Trocando wpa_supplicant pelo iwd no NetworkManager (Systemd)
OCS Inventory NG: Instalação de Agentes Linux e Windows + Autenticação HTTP
O Free Download Manager não abre no Fedora 43 KDE Plasma (2)
O que houve com slackware ??? (9)
Permissão acesso as pastas servidor Ubuntu Server 24.04 (5)









