@ -20,3 +20,27 @@ int getOperationId(char symbol) {
}
return id;
char getOperationSymbol(int id) {
char symbol = ' ';
switch (id) {
case 1:
return '+';
case 2:
return '-';
case 3:
return '/';
case 4:
return '*';
case 5:
return '^';
case 6:
return '%';
case 7:
return '!';
return symbol;
@ -3,4 +3,6 @@
int getOperationId(char);
char getOperationSymbol(int);
#endif //THEADMIRALS_INPUTHANDLER_H