FBI Universal Control Numbers
Jump to navigation
Jump to search
This problem tells you exactly what to do. Do it. There is nothing hard about this problem.
As always, note it is easier to deal with char arrays than with strings directly.
One implementation trick might be to store the "confusing" characters in a map. Then if the map contains that character, you know to flip it. There are several other trivial ways of doing this....a switch() statement works fine.