/****************************************************************************** * This program converts Ferengi currency. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ #undef NDEBUG #include #include #include #include std::locale utf8loc(std::locale(), new std::codecvt_utf8); using namespace std; static int const SLIPS_PER_STRIP = 100; static int const STRIPS_PER_BAR = 20; int main(int argc, char **argv) { setlocale(LC_ALL, "en_US.UTF-8"); wcout.imbue(utf8loc); wcin.imbue(utf8loc); int bars = 500; int strips = bars * STRIPS_PER_BAR * SLIPS_PER_STRIP; wcout << bars << L" bars = " << strips << L" strips" << endl; return 0; }