Clarification on how character encodings work

后端 未结 0 811
生来不讨喜
生来不讨喜 2020-12-21 00:59

I am writing a program to get the "sum" of a word, based on letters (i.e. "abc" = a+b+c = 1+2+3 = 6). I am using the method of total += (int) char

相关标签:
回答
  • 消灭零回复
提交回复
热议问题