/****************************************************************************** * This program generates license plates. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ #undef NDEBUG #include #include #include using namespace std; static string const LETTERS = "ABCDEFGHJKLMNPQRTUVWXYZ"; static string const DIGITS = "0123456789"; int main(int argc, char **argv) { long count = 0; for (auto c1 : LETTERS) { for (auto c2 : LETTERS) { for (auto c3 : LETTERS) { for (auto c4 : DIGITS) { for (auto c5 : DIGITS) { for (auto c6 : DIGITS) { cout << fmt::format("{0:c}{1:c}{2:c}-{3:c}{4:c}{5:c}", c1, c2, c3, c4, c5, c6) << endl; ++count; } } } } } } cout << "Total: " << count << endl; return 0; }