#include #include "outputHandling.h" #include "inputHandling.h" void buildHexString(char* string, int num) { sprintf(string, "0x%X", num); } void buildOctString(char* string, int num) { sprintf(string, "%o", num); } void showResult(calc_op* res) { char string[60] = {0}; printf("Das Ergebnis ist: %f\n", res->result); printf("Das Ergebnis in dec: %i\n",(int)res->result); buildHexString(string, (int) res->result); printf("Das Ergebnis in buildHexString: 0x%s\n", string); ; buildOctString(string, (int) res->result); printf("Das Ergebnis in buildOctString: %s\n", string); ; }