|
|
@ -12,11 +12,11 @@ void buildOctString(char* string, int number) { |
|
|
|
|
|
|
|
|
|
|
|
void showResult(calc_op* result) { |
|
|
|
char buf[60] = {0}; |
|
|
|
char string[60] = {0}; |
|
|
|
printf("Das Ergebnis ist: %f\n", result->result); |
|
|
|
printf("Das Ergebnis in dec: %i\n",(int)result->result); |
|
|
|
buildHexString(buf, (int) result->result); |
|
|
|
printf("Das Ergebnis in buildHexString: 0x%s\n", buf); ; |
|
|
|
buildOctString(buf, (int) result->result); |
|
|
|
printf("Das Ergebnis in buildOctString: %s\n", buf); ; |
|
|
|
buildHexString(string, (int) result->result); |
|
|
|
printf("Das Ergebnis in buildHexString: 0x%s\n", string); ; |
|
|
|
buildOctString(string, (int) result->result); |
|
|
|
printf("Das Ergebnis in buildOctString: %s\n", string); ; |
|
|
|
} |