|
@ -4,7 +4,7 @@ |
|
|
#include <math.h> |
|
|
#include <math.h> |
|
|
#include <stdbool.h> |
|
|
#include <stdbool.h> |
|
|
|
|
|
|
|
|
#include "taschenrechner.h" |
|
|
|
|
|
|
|
|
#include "calculator.h" |
|
|
|
|
|
|
|
|
char testForOperator() { |
|
|
char testForOperator() { |
|
|
//saving the number of operators in a variable so it only needs to be changed in one location |
|
|
//saving the number of operators in a variable so it only needs to be changed in one location |
|
@ -26,4 +26,4 @@ char testForOperator() { |
|
|
//if the input was deemed invalid it asks for new input and goes to the top of the while loop |
|
|
//if the input was deemed invalid it asks for new input and goes to the top of the while loop |
|
|
printf("The input was not allowed. Please try again!\n"); |
|
|
printf("The input was not allowed. Please try again!\n"); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |