The approach is faulty. Hexadecimal is just a way of expressing a number in a different base. It's incorrect to look at a character and return what that character would be in decimal. You need to...
Type: Posts; User: ChristopherLowe
The approach is faulty. Hexadecimal is just a way of expressing a number in a different base. It's incorrect to look at a character and return what that character would be in decimal. You need to...
Good for you! Trying something then learning from the mistakes and trying something else is the best way to learn :)
Now you are on the right track! But instead of writing something from...
When you find yourself doing this ... stop and think about what you are trying to accomplish. Computers are excellent at repetition and loops are a fundamental concept for all programming languages....
char a = A;
This is attempting to assign the primitive variable a to the value of another variable A. You can define a character literal with the ' symbol.
char a = 'A';