|
@ -85,7 +85,7 @@ char* getNumbers(char* formulaString, int length, calc_op* formulaRef){ //proces |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void showStruct(calc_op* formulaRef){ |
|
|
void showStruct(calc_op* formulaRef){ |
|
|
printf("Berechnung: %s\n", formulaRef->formular); |
|
|
|
|
|
|
|
|
printf("\nBerechnung: %s\n", formulaRef->formular); |
|
|
switch (formulaRef->functionsType) { |
|
|
switch (formulaRef->functionsType) { |
|
|
case opAdd: |
|
|
case opAdd: |
|
|
printf("Rechenoperation: Addition\n"); break; |
|
|
printf("Rechenoperation: Addition\n"); break; |
|
@ -102,5 +102,5 @@ void showStruct(calc_op* formulaRef){ |
|
|
for (int arrayCount = 0; arrayCount < formulaRef->arrayLength; ++arrayCount) { |
|
|
for (int arrayCount = 0; arrayCount < formulaRef->arrayLength; ++arrayCount) { |
|
|
printf("Array[%i] = %f\n", arrayCount, formulaRef->inputNumbers[arrayCount]); |
|
|
printf("Array[%i] = %f\n", arrayCount, formulaRef->inputNumbers[arrayCount]); |
|
|
} |
|
|
} |
|
|
printf("Result: %f", formulaRef->result); |
|
|
|
|
|
|
|
|
printf("Result: %f\n", formulaRef->result); |
|
|
} |
|
|
} |