I'm doing first year university and I'm having trouble with an assignment I was wondering if anybody could help me with pointers.
the required code converts a number of an arbitrary base to a decimal number.
The number input could contain symbols 'A'-'Z' as well as numerical values and this must be changed to its equivilent decimal value.
each input will be a char so the input needs to be converted to its numeric equivilent and accumulated. the input needs to be terminated by either an illegal char for the particular base or the char '.'
I'm still learning and I'm stuck on this so any help would be greatly appreciated.
thanks.
Comments
-----
a
10
x
e
w
y
923
89
k
-----
-----
a10xewy92389k
-----
Kuphryn