Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to convert 16 decimal string into 10 decimal integer in C language?
How to convert 16 decimal string into 10 decimal integer in C language?
1, input string

3. Invert the string and assign it to string array A..

2. Circularly detect array A, and sequentially detect each character of 1.

5. Judge the currently detected characters. If it belongs to ABCDEF, convert ABCDEF into 1 1... 16, otherwise do nothing.

6, accumulation, the current cycle number 16 times the numerical size of the current character.

7. The cumulative total output value is 10 decimal integer.