Created
April 28, 2017 18:31
-
-
Save etodanik/d3b06b9e4404529660bedb5ea20d7b82 to your computer and use it in GitHub Desktop.
getOperationName() function for Shabak Challenge Part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string getOperationName(uint8_t code) { | |
switch (code) { | |
case Xor: | |
return "Xor"; | |
break; | |
case Add: | |
return "Add"; | |
break; | |
case Subtract: | |
return "Subtract"; | |
break; | |
default: | |
return "[Invalid]"; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment