/****************************************************************************** * This program prints a multiplication table for 16s. * * 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; int main(int argc, char **argv) { setlocale(LC_ALL, "en_US.UTF-8"); wcout.imbue(utf8loc); wcin.imbue(utf8loc); wcout << 0x0 << L" \u00D7 " << 0x10 << L" = " << 0x0 << endl; wcout << 0x1 << L" \u00D7 " << 0x10 << L" = " << 0x10 << endl; wcout << 0x2 << L" \u00D7 " << 0x10 << L" = " << 0x20 << endl; wcout << 0x3 << L" \u00D7 " << 0x10 << L" = " << 0x30 << endl; wcout << 0x4 << L" \u00D7 " << 0x10 << L" = " << 0x40 << endl; wcout << 0x5 << L" \u00D7 " << 0x10 << L" = " << 0x50 << endl; wcout << 0x6 << L" \u00D7 " << 0x10 << L" = " << 0x60 << endl; wcout << 0x7 << L" \u00D7 " << 0x10 << L" = " << 0x70 << endl; wcout << 0x8 << L" \u00D7 " << 0x10 << L" = " << 0x80 << endl; wcout << 0x9 << L" \u00D7 " << 0x10 << L" = " << 0x90 << endl; wcout << 0xA << L" \u00D7 " << 0x10 << L" = " << 0xA0 << endl; wcout << 0xB << L" \u00D7 " << 0x10 << L" = " << 0xB0 << endl; wcout << 0xC << L" \u00D7 " << 0x10 << L" = " << 0xC0 << endl; wcout << 0xD << L" \u00D7 " << 0x10 << L" = " << 0xD0 << endl; wcout << 0xE << L" \u00D7 " << 0x10 << L" = " << 0xE0 << endl; wcout << 0xF << L" \u00D7 " << 0x10 << L" = " << 0xF0 << endl; wcout << 0x10 << L" \u00D7 " << 0x10 << L" = " << 0x100 << endl; return 0; }