84. EAN-13 barcode generator

The International Article Number (aka European Article Number or EAN), as described on Wikipedia, is a standard describing a barcode symbology and numbering system that is used in global trade to identify a specific retail product type, in a specific packaging configuration, from a specific manufacturer. The most commonly used EAN standard is the 13-digit EAN-13. A description of the standard, including information on how the barcode should be generated, can be found on Wikipedia at https://en.wikipedia.org/wiki/International_Article_Number and will not be detailed in this book. The following is the EAN-13 barcode for the number 5901234123457, given as an example in the problem’s description (source: Wikipedia): ...

Get The Modern C++ Challenge now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.