For my program, I am currently stuck, I know what I want to do, but don't know how to translate it into code. I need help on how I would go about to separating the nice character string into three letter blocks.
For example "ABCDEFGHI"
codeA = ABC
codeB = DEF
codeC = GHI
I know that the at function should be used to get the individual characters. Then a for loop to add the character values together. I know characters ABC should yield the sum 198 and need to be referenced in codeA and equal X in main.
Hmmm... Maybe this can help You, but it`s a bit different.
Question: how You will print string variables using int`s? X, y and z can`t take a string values. And one serious but sometimes hard to find error:
if (bool decode = 1) - this will NEWER give You a good result, should be:
if (bool decode ==1).
To the point: