Pure Programmer
Blue Matrix


Cluster Map

Project: Country Flags

Write a program that prints various country flags followed by country names in their native language using Unicode characters embedded in strings. List the countries in alphabetical order. When you sort the lines of code in your text editor how do the various country flags sort?

See: [[ISO 3166-1]]
See: [[Google Translate]]
See: [[Unicode Country Flags]]

Output
$ g++ -std=c++17 CountryFlags.cpp -o CountryFlags -lfmt $ ./CountryFlags 🇦🇹 Österreich 🇧🇩 বাংলাদেশ 🇧🇷 Brasil 🇧🇾 Беларусь 🇨🇦 Canada 🇨🇳 中国 🇩🇪 Deutschland 🇪🇬 مصر 🇫🇷 France 🇬🇧 United Kingdom 🇬🇷 Ελλάδα 🇮🇱 ישראל 🇮🇳 इंडिया 🇮🇹 Italia 🇯🇵 日本 🇰🇷 대한민국 🇲🇽 Méjico 🇵🇪 Perú 🇵🇭 Pilipinas 🇷🇺 Россия 🇸🇦 المملكة العربية السعودية 🇹🇷 Türkiye 🇺🇸 United States 🇻🇳 Việt Nam 🇿🇦 Suid-Afrika

Solution