String characters to int.
I'm trying to get the int value of each character in a string and then add them all together so I can do a 1's complement of the total value. I'm trying to do simple checkum kinda of thing for verification of data.
string DPacket = "Hello World!";
I would like to have each character added and do the ones complement.
Will it be easier to convert first to int and then add or any other easier way?
so my result should be the decimal value addition of each character and then do the ones complement to that.