Im trying to change a hexadecimal number to a decimal number and the only problem i have is that i don't know how to compare one character in the string to another character. i know you can compare whole strings but i cant find anything to compare just one character at a time. If anyone knows how to or if its even possible i would appreciate it.
I think your problem is that you are not summing properly. Your summing code implies 'A' is worth 16010 no matter where the 'A' appears in the hex value. In other words, you are saying that 0xAB = 160+176 = 0xBA = 176+160, which is clearly wrong. You need to figure out the actual value of the hex digit based on its significance (position in the number).