|
|
@ -0,0 +1,30 @@ |
|
|
|
#include "conversionOfNumbers.h" |
|
|
|
#include "../userinput.h" |
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
int main(){ |
|
|
|
int min = 0; |
|
|
|
int max = 2; |
|
|
|
int InputSys; |
|
|
|
while(InputSys != 3){ |
|
|
|
|
|
|
|
printf("\nWaehle Zahlensystem:\n" |
|
|
|
"\n<0> Binaer System\n" |
|
|
|
"<1> Hexadezimal System\n" |
|
|
|
"<2> Beenden\n"); |
|
|
|
InputSys = usergetd("\nEingabe: ", &min, &max); |
|
|
|
if(InputSys == 2) break; |
|
|
|
int InputProg; |
|
|
|
|
|
|
|
while(InputProg != 3){ |
|
|
|
|
|
|
|
printf("\nZu oder von einer Dezimalzahl konvertieren?\n" |
|
|
|
"\n<0> Zu\n" |
|
|
|
"<1> Von\n" |
|
|
|
"<2> Hauptmenue\n"); |
|
|
|
InputProg = usergetd("\nEingabe: ", &min, &max); |
|
|
|
if(InputProg == 2) break; |
|
|
|
} |
|
|
|
} |
|
|
|
return 0; |
|
|
|
} |