C++ Learning to code

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

  • How do you test the program? Do you insert one character or integer at a time or do you insert an array of characters? For example,

    -----
    a
    10
    x
    e
    w
    y
    923
    89
    k
    -----

    -----
    a10xewy92389k
    -----

    Kuphryn


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion