
CodePudding user response:
Character figures - '0' is the corresponding integerFirst determine the STR [0] is such as' - '
The for loop evaluation
Sum=sum * 10 + STR [I] - '0'
CodePudding user response:
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.htmlI hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html