I have 20 digits and I would like to associate them with strings. Is there a faster way besides using a switch case statement to achieve this.
I need to convert an int to a corresponding string and the numbers aren’t necessarily packed. Some code in Qt as well might be useful?
Example: The following digits and strings are associated with each other,
1: "Request System Info"
2: "Change System Info"
10: "Unkown Error"
easier way to use map