Howdy, Stranger!

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

Categories

help pliz!

meshtebmeshteb Member Posts: 47
Would you have time to write a little Visual C++ program that accepts a list of words and converts them to numeric equivalents as follows:


abc = 1 2 3
man = 13 1 14
program = 16 18 15 7 18 1 13


The coding scheme is as follows:

a b c d e f g h i j ....... x y z = 1 2 3 4 5 6 7 8 9 10 ........
24 25 26.


Comments

  • PharabeePharabee Member Posts: 84
    : Would you have time to write a little Visual C++ program that accepts a list of words and converts them to numeric equivalents as follows:
    :
    :
    : abc = 1 2 3
    : man = 13 1 14
    : program = 16 18 15 7 18 1 13
    :
    :
    : The coding scheme is as follows:
    :
    : a b c d e f g h i j ....... x y z = 1 2 3 4 5 6 7 8 9 10 ........
    : 24 25 26.
    :
    :
    :

    I only know ASM so use it like this.
    int ConvAlpha ( int Alpha)
    {
    LCase(Alpha); Make Alpha LowCase
    if Alpha >= 'a' ; If Alpha =>a
    { if Alpha <'z' ; Alpha should less than z
    { Alpha=Alpha-0x60; Substract alpha 96.
    ret Alpha ;Return Alpha.
    }
    }
    }

  • Josh CodeJosh Code Member Posts: 675
    : Would you have time to write a little Visual C++ program that accepts a list of words and converts them to numeric equivalents as follows:
    :
    :
    : abc = 1 2 3
    : man = 13 1 14
    : program = 16 18 15 7 18 1 13
    :
    :
    : The coding scheme is as follows:
    :
    : a b c d e f g h i j ....... x y z = 1 2 3 4 5 6 7 8 9 10 ........
    : 24 25 26.
    :

    This has absolutely nothing to do with making an assembler or a compiler.

    Don't post this question here.

    There is a c/c++ board.

  • PharabeePharabee Member Posts: 84
    : : Would you have time to write a little Visual C++ program that accepts a list of words and converts them to numeric equivalents as follows:
    : :
    : :
    : : abc = 1 2 3
    : : man = 13 1 14
    : : program = 16 18 15 7 18 1 13
    : :
    : :
    : : The coding scheme is as follows:
    : :
    : : a b c d e f g h i j ....... x y z = 1 2 3 4 5 6 7 8 9 10 ........
    : : 24 25 26.
    : :
    :
    : This has absolutely nothing to do with making an assembler or a compiler.
    :
    : Don't post this question here.
    :
    : There is a c/c++ board.
    :
    :
    Yup, thats right.

Sign In or Register to comment.