I have a program that i have to do for school. i have to convert octal, hex, and binary to its standard output
and print out an how many overflows are read from the file
I have to read from: example 0b0101 -012 0x05A -123
the output should be something like this
Binary 5
octal -10
Decimal -123
Hexadecimal 90
any ideas how to right functions so that it can convert
the numbers?
the only hint the instructor gave us it to use a function
something like this: int getnum(int *error, int *radix, int *characters_read)
any help would greatly appreciated Nail the code
and print out an how many overflows are read from the file
I have to read from: example 0b0101 -012 0x05A -123
the output should be something like this
Binary 5
octal -10
Decimal -123
Hexadecimal 90
any ideas how to right functions so that it can convert
the numbers?
the only hint the instructor gave us it to use a function
something like this: int getnum(int *error, int *radix, int *characters_read)
any help would greatly appreciated Nail the code