|
|
@ -1,5 +1,5 @@ |
|
|
|
#include "inputHandler.h" |
|
|
|
#include <string.h> |
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
// return operation id for a specific symbol |
|
|
|
int getOperationIdBySymbol(char symbol) { |
|
|
@ -49,4 +49,10 @@ char getOperationSymbolById(int id) { |
|
|
|
int isOperationIdValid(int id) { |
|
|
|
if(id < 0 || id > 7) return 0; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
int isNumberTooBig(int number) { |
|
|
|
if(number < 200) return 0; |
|
|
|
printf("Diese Nummer ist zu groß"); |
|
|
|
return 1; |
|
|
|
} |